Windows 8.1 Batch Scripts for devcon.exe

HiI'm using batch script with devcon.exe for cleaning usb ghost devices. On XP and Win 7 it works perfect but on windows 8.1 only if i manualy paste commands on "administrator command line" but it wont start from my batch script. Is there any solution for windows 8 to enable security rule for batch script? Win 8 is so annoying for any type of scripts even gpo. At the moment im trying to resolve this problem with PowerShell.This is how script looks like:
Text@echo offDEVCON Find * | FIND /I /V "matching device(s)" > "%Temp%\DevconFind.txt"FOR /F "tokens=1 delims=: " %%A IN ('DEVCON FindAll * ^| FIND /I /V "matching device(s)"') DO (TYPE "%Temp%\DevconFind.txt" | FIND "%%~A" >NULIF ERRORLEVEL 1 %Debug% DEVCON Remove "@%%~A")DEL "%Temp%\DevconFind.txt"
Regards
This topic first appeared in the Spiceworks Community

Uninstall it.  Reboot.  Then install.  Reboot.
All of this should be done as Run as Administrator or it will fail.
16GIG or Larger usb flash drive is required.  8 gigs is too small.
http://www.dell.com/support/home/us/en/19/Drivers/DriversDetails?driverId=8HY96

Similar Messages

  • Not able to push batch script for installing IIS all features using SCCM 2012 task sequence

    Hey Guys, I am working for this from a long time but not able to make it work, I am using following batch script for installing IIS  using SCCM 2012 task sequence:
    Dism.exe /online /Enable-Feature /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServerRole /FeatureName:IIS-WebServer /FeatureName:IIS-ApplicationDevelopment /FeatureName:IIS-Security /FeatureName:IIS RequestFiltering /FeatureName:IIS-NetFxExtensibility
    /FeatureName:WAS-WindowsActivationService /FeatureName:WAS-ProcessModel /FeatureName:WAS-NetFxEnvironment /FeatureName:WAS-ConfigurationAPI /FeatureName:NetFx3 /FeatureName:WCF-HTTP-Activation /FeatureName:WCF-NonHTTP-Activation /FeatureName:IIS-WebServerManagementTools
    /FeatureName:IIS-ManagementConsole /FeatureName:IIS-ManagementScriptingTools  /FeatureName:IISIIS6ManagementCompatibility /FeatureName:IIS-ManagementService /FeatureName:IIS-Metabase /FeatureName:IIS-WMICompatibility
    When I run this script as admin by right click on it and select "run as a administrator" the script works fine but when I pushed the script as a software package or a step in OSD task sequence, nothing happens. I also tried
    run command line option but no luck. Please help me with this.
    Thanks,
    VST

    1. When I used "run command line" option I found following errors in smsts.log:
    Remediation failed. Code 8027000C TSManager 1/2/2014 2:32:12 PM 2720 (0x0AA0)
    Remediation failed with error code 8027000C TSManager 1/2/2014 2:32:12 PM 2720 (0x0AA0)
    Remediation failed. Code 8027000C TSManager 1/2/2014 2:34:16 PM 2092 (0x082C)
    Remediation failed with error code 8027000C TSManager 1/2/2014 2:34:16 PM 2092 (0x082C)
    Failed to run the action: Run Command Line.
    Unknown error (Error: 800F080C; Source: Unknown) TSManager 1/2/2014 2:34:32 PM 2092 (0x082C)
    Failed to delete directory 'C:\_SMSTaskSequence' TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    SetNamedSecurityInfo() failed. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    SetObjectOwner() failed. 0x80070005. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005. TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\Package. Error code 0x80070002 TSManager 1/2/2014 2:34:33 PM 2092 (0x082C)
    RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    GetTsRegValue() failed. 0x80070002. TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    ReleaseRequest failed with error code 0x80004005 TSManager 1/2/2014 2:34:34 PM 2092 (0x082C)
    RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram OSDSetupHook 1/2/2014 2:34:35 PM 360 (0x0168)
    GetTsRegValue() failed. 0x80070002. OSDSetupHook 1/2/2014 2:34:35 PM 360 (0x0168)
    2. We are not using MDT in our environment so I ant use add features and roles option.
    3. The script is running fine when we run it manually.

  • Executable or batch script for end users to export mailbox to PST

    We are in the process of taking over a small firm and proceeding with manual migration of mailboxes from this firm , currently we do not have full access to their environment and having a hard time depending on admins of their organization dealing over
    to exporting mailboxes and then importing them back to our exchange environment,  my idea is to rather provide a executable or batch script to user's of their organization get their mailboxes exported out directly from end users  so that we do not
    have to depend on remote organization's admins for every single user out there . is there a batch script or some executable code that end users can run to have their mailbox exported out directly ? 
    Aditya Mediratta

    Seems like, this informative article would be a good approach to resolve your concern :
    http://www.msexchange.org/articles-tutorials/exchange-server-2013/management-administration/managing-pst-import-export-process-exchange-server-2013-part2.html
    Moreover if you wish, you may also give a shot to this automated solution (http://www.exchangemailboxtopst.org/) in order to accomplish this job in more easier and quicker way.

  • Batch script for automating process

    Hi all, not sure if this is the right area asking about batch scripts, but this has to do with the back-end system in Hyperion.
    I was wondering if there is a way to run a batch script on the transaction log that will give a list of any new GL accounts that have been added in the prior month or within the last 30 days? Can it also show which users are added to the account?
    The purpose of this is to automate the process periodically and eliminate the Outline Maintenance Log or import to the Outline Maintenance Log. It would be helpful for adding more new cost centers.
    Lastly, can I also run a batch script to see how often our end-users are in Hyperion reports?
    thank you.

    +...give a list of any new GL accounts that have been added in the prior month...+
    Correct me if i'm wrong:
    You want to know new members added in the account dimension recently. Is that right?
    If so, you could do a select command like that:
    SELECT O.OBJECT_NAME -- Just the member name. For alias, you need another join
    FROM HSP_ACCOUNT A -- For performance, i put the smallest table here
    INNER JOIN HSP_OBJECT O ON A.ACCOUNT_ID = O.OBJECT_ID -- Join to get the member name
    WHERE O.CREATED >= (SYSDATE-(30)) -- last 30 days
    Note this specific select you can only get the account dimension. Entity has his own table too.
    For custom dimention it gets a little more complicated.

  • HT1347 Windows: Is there a script for adding a folder to an iTunes Library at startup?

    Has anyone ever created a script to have "watched folders" functionality in iTunes?
    Three out of the four users in my household share the same iTunes library folder, which resides on a separate hard drive (along with the iTunes Library of the 4th user). I thought this would be the easiest way for all the music purchased for our family to be shared among us, while not sharing playlists. I thought iTunes would, automatically and routinely, scan and categorize the files in the designated iTunes Media Folder.
    However, now whenever someone adds music through their account, the songs will not show up in another user's library (even though both accounts use the same iTunes Media Folder). The only way to have an up-to-date library, is to go to "File" > "Add Folder to Library..." and add the iTunes Media folder each time a user starts their iTunes instance.
    I'm new to iTunes (moving over from WMP and VLC).
    Just in case anyone cares... I'm using:
    - iTunes 10.7.0.21
    - Windows 7 Home Premium 64-bit (with Service Pack 1)
    - We have an iPhone and an iPod touch in the household

    iTunes Folder Watch
    tt2

  • Need help with batch file for javac.exe and java.exe

    I have this in my batch file:
    c:\jdk1.3.1_05\bin\javac
    What symbol do I need to be able to run this from cprompt with any file following it

    Thanks could remember that for nothing

  • Batch Script for Logging Outline Change(s)

    In 11.1.2.2., is there a way of automatically generating a maintenance log to keep track of each time making changes to the outline?
    I haven't seen it in the docs, but figured that I should double check with the forum...

    You will get a better answer in Essbase forum
    However go through
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/outlinechangelog.html
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/outlinechangelogfilesize.html
    This is what you are looking for. I'll use that with caution, because it can cause a performance degradation.
    During a restructure, Essbase holds outline change information in memory until all updates have been made to the outline change log. Turning on the outline change log might affect your restructure performance, particularly after dimension builds of several hundred or more members.Regards
    Celvin
    http://www.orahyplabs.com

  • DRM batch script error for export

    Hi,
    getting error while running batch script for export.
    ERemotableException with message: "Server was unable to process request. ---> Error during Export. Export was unable to run. Error: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied" while running Export
    4/26/2013 9:02:20 PM - => ERROR: Data Relationship Management Server returned error: "Server was unable to process request. ---> Error during Export. Export was unable to run. Error: [Oracle][ODBC][Ora]ORA-01017: invalid username/password; logon denied."
    can anyone help .

    Hi,
    Did you check the username / password being used to run the export through Batch Client? All correct ? More details would help.
    Denzz

  • Devcon.exe error message

    Hi, My wan miniport adapters stopped functioning recently (exclamation signs on each of them). I tried uninstalling the broken miniports by right clicking and hitting uninstall but that wouldn't work, but was able to uninstall them through
    a method found on spiceworks "55611- fix-broken wan-miniports" (Microsoft won't let me post links).  The problem I'm having (since I don't have internet access due to these broken miniports) is reinstalling the wan miniports.  It appears
    (although please let me know if there is an easier way) that the only solution has been to reinstall them by using devcon.exe.  I've tried downloading WDK onto another computer (downloaded from Microsoft website) and then putting all
    files downloaded onto a thumbdrive to get devcon.exe onto my broken computer.  My computer installs WDK, but when I click on devcon.exe (for amd64), nothing happens.  When I click on the x64 version, I receive an error message indicating
    that this version is not compatible with my computer.  If I try to access devcon.exe from WinDbg "Open Executable" and the click on "devcon" that way, I receive the following error message below. Would be ever so grateful if anyone
    has ideas on how to solve this problem (missing the internet). Sony Vaio, Windows 7, 64-bit operating system. 
    Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
    Copyright (c) Microsoft Corporation. All rights reserved.
    CommandLine: C:\WinDDK\7600.16385.1\tools\devcon\amd64\devcon.exe
    Symbol search path is: *** Invalid ***
    * Symbol loading may be unreliable without a symbol search path.           *
    * Use .symfix to have the debugger choose a symbol path.                   *
    * After setting your symbol path, use .reload to refresh symbol locations. *
    Executable search path is:
    ModLoad: 00000000`ff290000 00000000`ff2a7000   devcon.exe
    ModLoad: 00000000`77090000 00000000`77239000   ntdll.dll
    ModLoad: 00000000`76f70000 00000000`7708f000   C:\Windows\system32\kernel32.dll
    ModLoad: 000007fe`fcef0000 000007fe`fcf5c000   C:\Windows\system32\KERNELBASE.dll
    ModLoad: 000007fe`fe200000 000007fe`fe2db000   C:\Windows\system32\ADVAPI32.dll
    ModLoad: 000007fe`fda20000 000007fe`fdabf000   C:\Windows\system32\msvcrt.dll
    ModLoad: 000007fe`fd8d0000 000007fe`fd8ef000   C:\Windows\SYSTEM32\sechost.dll
    ModLoad: 000007fe`fdef0000 000007fe`fe01d000   C:\Windows\system32\RPCRT4.dll
    ModLoad: 000007fe`fdad0000 000007fe`fdcd3000   C:\Windows\system32\ole32.dll
    ModLoad: 000007fe`fe020000 000007fe`fe087000   C:\Windows\system32\GDI32.dll
    ModLoad: 00000000`76e70000 00000000`76f6a000   C:\Windows\system32\USER32.dll
    ModLoad: 000007fe`fe1f0000 000007fe`fe1fe000   C:\Windows\system32\LPK.dll
    ModLoad: 000007fe`fd300000 000007fe`fd3c9000   C:\Windows\system32\USP10.dll
    ModLoad: 000007fe`fdce0000 000007fe`fdeb7000   C:\Windows\system32\SETUPAPI.dll
    ModLoad: 000007fe`fd130000 000007fe`fd166000   C:\Windows\system32\CFGMGR32.dll
    ModLoad: 000007fe`fd680000 000007fe`fd757000   C:\Windows\system32\OLEAUT32.dll
    ModLoad: 000007fe`fd110000 000007fe`fd12a000   C:\Windows\system32\DEVOBJ.dll
    (204.1628): Break instruction exception - code 80000003 (first chance)
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll -
    ntdll!CsrSetPriorityClass+0x40:
    00000000`7713cb70 cc              int     3

    Thanks.  Yesterday, I was able to get devcon.exe to run but was only able to reinstall some of the broken wan miniports.  Commands are below for the ones that did not install.  Still do not have internet access.  By any chance,
    do you know why this could be?  Also, I would think Microsoft would have an easier solution to the broken miniports problem than this, but have not been able to come across one.  Thanks again for your help.
    IP:
    devcon.exe install c:\Windows\inf\netrasa.inf MS_NdisWanIp
    ◦IPv6:
    devcon.exe install c:\Windows\inf\netrasa.inf MS_NdisWanIpv6
    ◦Network Monitor:
    devcon.exe install c:\Windows\inf\netrasa.inf MS_NdisWanBh
    ◦L2TP:
    devcon.exe install c:\Windows\inf\netrasa.inf MS_L2tpMiniport
    ◦PPPoE:
    devcon.exe install c:\Windows\inf\netrasa.inf MS_PppoeMiniport
    ◦PPTP:
    devcon.exe install c:\Windows\inf\netrasa.inf MS_PptpMiniport
    ◦SSTP:
    devcon.exe install c:\Windows\inf\netsstpa.inf MS_SstpMiniport

  • Package manager & restore batch scripts

    Hi,
    Does anyone know where I can find any documentation on Package Manager and restore batch scripts for EPM version 11.1.2.1? I'm interested in ways to restore planning applications.
    Thanks in advance!

    You could have a look at the backup and recovery guide - http://download.oracle.com/docs/cd/E17236_01/epm.1112/epm_backup_recovery_11121/frameset.htm?launch.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unix shell script to batch file for windows

    Hello all,
    Iam writing a program in java in unix environment and iam executing using shell scripts in unix this program is for client-server environment
    which look like this:
    For server:
    #! /bin/ksh
    export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
    #set var for filename config file
    export JAL_CONF_FILE=/user/vpp/jal/conf/JALapp.conf
    java -DJAL_CONF_FILE=$JAL_CONF_FILE jalsvr/JALTCPServer 7776for client side it is
    #! /bin/ksh
    export CLASSPATH=/user/vpp/jal/classes:$CLASSPATH
    echo $CLASSPATH
    java jalcl/JALTCPClient msoc05:7776my question is know i want to execute them in windows by creating batch files runsvr.bat, runcl.batbut how
    i gave PATH by giving JRE path but what is the replacement of export because iam having all class files
    in /jalcl for clients and /jalsvr for server but want to create this batch file in separate /bin folder how to do.please help me

    Thank you for reply ,
    And sorry by mistake question repeated twice,
    but when iam executing those batch files it is throwing some exceptions,
    in that file you did not mention to set the JRE path whether it is not necessary and also there msoc05 is the machine name of unix system that need to kept or need to be changed with window IP address .please reply.
    thanks in advance.

  • Batch Script using System Varriable for Hostname and FQDN results in large space between

    I have a batch script running on Windows 7 that I've created to help a physical computer, connect to his virtual cousin.  Problem is when I try to make
    it use the FQDN (required by the View Client) it puts a large space between the hostname and the domain.
    Result
    ECHO Connecting View Client to PREFIX-SERIAL .domain.comOR"C:\Program Files\VmWare\View.exe" -Args -serverURL PREFIX-SERIAL       .domain.com
    Our computers are named a combination of a prefix and the serial number.  Our virtual computer names are the same, but with a different prefix.  So my attempt was to make a connection
    script, using the computer serial number.  My Process:
    Setting %serial% variable.
    for /F "skip=1 tokens=*" %%b in ('wmic bios get serialnumber') do if not defined serial set serial=%%b
    Set %hostname% variable.
    set hostname=PREFIX-%serial%
    Installation command line
    "C:\Program Files\VmWare\View.exe" -Args -serverURL %hostname%.domain.com
    That results in the output at the beginning of my post.
    I've also tried
    %hostname%.%userdomain%.com
    PREFIX-%serial%.%userdomain%.com
    PREFIX-%serial%.domain.com
    SET FQDN=.domain.com
    PREFIX-%serial%%FQDN%
    %hostname%%FQDN%
    I also tried carets and quotes on set commands without any improvement.
    I'm sure I'm missing something simple here.  Any advise?
    There's no place like 127.0.0.1

    Will something like this get you what you are looking for?
    (gwmi win32_bios).SerialNumber+(gwmi WIN32_ComputerSystem).Domain
    Or
    $hostname=(gwmi win32_bios).SerialNumber+"."+(gwmi WIN32_ComputerSystem).Domain
    Sorry just realized your looking to do this in a Batch file...so maybe something like this
    @echo off
    for /F "skip=1 delims=" %%j in ('powershell "[System.Net.Dns]::GetHostByName((hostname)).HostName"') do (
    set Host=%%j
    goto :DONE
    :DONE
    echo %HOST%

  • Script for Windows

    Hi Experts,
    We have Goldengate environment and replicating the data between on source to Many target environments , both source and target environments are Oracle only,  To monitor the process and exceptions we have used shell scripts on both the environments,
    now we have new requirment for replicating the data between oracle to sql server , we have install goldengate on windows NT server for target environment , But in source we are using shell script for monitirong manger process and extract process , like if mgr or extract process is abended immediatly we will get the alert mail through mailx functionality, Now we need to use the same approach for windows sql serer as well , can any one please guide how to achive the monitoring requirment in windows environment as like unix/solaris, is there any option available in windows to writing the scritps like shell also sending the alert mails, Kindly suggest on this.
    Thanks in Advance.
    AT

    I get the scheduler to run this batch file, dbcgen.bat
    rem Set Correct Starting Directory
    D:
    cd \gw8\admin\utility\dbcopy\win32
    cscript //NoLogo dbcgen.vbs > dbcrun.bat
    dbcrun.bat
    and the dbcgen.vbs does the rest
    ' Script to generate DBCRun.Bat file
    ' Result needs to be something like this
    ' D:\gw8\admin\UTILITY\DBCOPY\WIN32\dbcopy.exe /i 12-01-2010 /w n:\gw5po
    c:\gw5back
    Dim cDate
    cDBCPath = "D:\GW8\Admin\Utility\DBCopy\Win32\DBCopy.exe"
    cSrcPath = "N:\GW5PO"
    cTgtPath = "C:\GW5Back"
    dDate = Now() - 1
    'WScript.Echo dDate
    cDay = cStr(Day(dDate))
    if Len(cDay) = 1 then
    cDay = "0" & cDay
    end if
    'WScript.Echo cDay
    cMonth = cStr(Month(dDate))
    if Len(cMonth) = 1 then
    cMonth = "0" & cMonth
    end if
    'WScript.Echo cMonth
    cYear = cStr(Year(dDate))
    'WScript.Echo cYear
    cDate = cMonth & "-" & cDay & "-" & cYear
    'WScript.Echo cDate
    WSCript.Echo cDBCPath & " /i " & cDate & " /w " & cSrcPath & " " & cTgtPath
    set cDate = Nothing
    You can add/alter the various startup flags to suit yourself
    Cheers Dave
    Dave Parkes [NSCS]
    Occasionally resident at http://support-forums.novell.com/

  • How can I script a Flash .exe file to always stay on top of all other windows?

    Hi All,
    I'm new to action script, and I just need this one script
    > How can I script a Flash .exe file to always stay on top of
    all other windows?
    Basically what i want to do is have a flash-created
    step-by-step instructional movie, but for the movie to remain on
    top of all windows so the instructee is able to follow the
    instructions on-screen...
    It would be preferable to not have to buy another product
    just to do this... as I said, this is the only scripting I need.
    Thanks in advance
    Cheers
    Rick

    if you create your exe with mProjector you can use one of its
    new AS
    commands to do this.
    setZOrder
    http://www.screentime.com/software/mprojector/docs/mWin_setZOrder.htm
    all APIS
    http://www.screentime.com/software/mprojector/docs/index.html
    Demo
    http://www.screentime.com/software/mprojector/demo.html
    mProjector installs new classes and help into Flash, to
    enable them you
    must build your app with mProjector (its input is your swf)
    John Pattenden
    Screentime Media - Flash Tools since 1997
    http://www.screentime.com

  • LOG FILE for batch scripting in MAXL

    Hello,
    I just wanted to know how to create a LOG FILE for batch scripting.
    essmsh E:\Batch\Apps\TOG_DET\Scripts\unload_App.msh
    copy e:\batch\apps\tog_det\loadfile\gldetail.otl e:\hyperion\analyticservices\app\tog_det\gldetail /Y
    essmsh E:\Batch\Apps\TOG_DET\Scripts\Build_Hier_Data.msh
    REM
    ECHO OFF
    ECHO Loading GL actuals into WFS \ Combined......
    E:\HYPERION\common\Perl\5.8.3\bin\MSWin32-x86-multi-thread\PERL.EXE E:\Batch\Apps\WFS.COMBINED\AMLOAD\WFSUATAMLOAD.PLX
    E:\HYPERION\common\Perl\5.8.3\bin\MSWin32-x86-multi-thread\PERL.EXE E:\Batch\Apps\WFS.COMBINED\AMLOAD\WFSUATAMLOAD.PLX
    Drop object d:\NDM\Data\StampFiles\STAMPLOADBKUP.csv of type outline force;
    Alter object d:\NDM\Data\StampFiles\STAMPLOAD_cwoo.csv of type outline rename to d:\NDM\Data\StampFiles\STAMPLOADBKUP.CSV;
    SET LogFile=E:\Batch\Apps\TOG_DET\Logs.log
    This file does not generate log file can any help me what might be the problem? Even though some of the steps above are not correct it should generate me log file atleast. I need syntax or whatever it is to generate Log file.
    Regards
    Soma

    I wanted to have a logfile of the following batch script regardless of whether the script is running or not.
    essmsh E:\Batch\Apps\TOG_DET\Scripts\unload_App.msh
    copy e:\batch\apps\tog_det\loadfile\gldetail.otl e:\hyperion\analyticservices\app\tog_det\gldetail /Y
    essmsh E:\Batch\Apps\TOG_DET\Scripts\Build_Hier_Data.msh
    REM
    ECHO OFF
    ECHO Loading GL actuals into WFS \ Combined......
    E:\HYPERION\common\Perl\5.8.3\bin\MSWin32-x86-multi-thread\PERL.EXE E:\Batch\Apps\WFS.COMBINED\AMLOAD\WFSUATAMLOAD.PLX
    Drop object d:\NDM\Data\StampFiles\STAMPLOADBKUP.csv of type outline force;
    Alter object d:\NDM\Data\StampFiles\STAMPLOAD_cwoo.csv of type outline rename to d:\NDM\Data\StampFiles\STAMPLOADBKUP.CSV;
    What I really want is I need a log file of the above batch script, how the above scripts are running. I do not care whether they are giving me positive results but I need to know what is happening in logfile. HOw will the log file be generated.
    Regards
    SOma

Maybe you are looking for