

'# '# CUSTOMIZE.: '#= '# REVISED BY.: '# EMAIL.: '# REVISION DATE.: '# REVISION NOTES.: '# '#= '#= Set objShell = CreateObject ( "WScript.Shell" ) Set objFSO = CreateObject ( "Scripting.FileSystemObject" ) strStartMenu = objShell. ' #= '#= '# SCRIPT.:ĜleanUpStartMenuItems.vbs '# AUTHOR.: Stuart Barrett '# VERSION.:đ.0 '# CREATED.:đ1/11/11 '# LICENSE.:ğreeware '# REQUIREMENTS.: '# '# DESCRIPTION.:Ĝleans up any Start Menu folders containing broken '# shortcuts '# '# NOTES.: Untested on Windows 7!! '# '# Will ask before deleting any folders (can be amended '# as per noted in script) '# '# You can add as many excluded folders as required. I tried a few combinations, but I keep getting this error.Ĭould you help me out? I just wanna run the following Start Menu Cleanup script: My guess is that my users name User's is giving troubles. Source: Microsoft VBScript compilation error. When running above proposed script, I get the following error: > Now my problem: my users account name is: "user's". Rc = WshShell.Run ("runas /noprofile /user:" & suser & " " $ Chr(34) & sCommand & Chr(34)) WinPath = WshEnv("SystemRoot")&"\System32\runas.exe" Set WshEnv = wshShell.Environment("Process")

Set WshShell = CreatObject("WScript.Shell") Set WshNetwork = CreateObject("WScript.Network") Set objComputer = CreateObject("Shell.LocalMachine") Please note you can substitute the ablove for a local directory (Example: C:\Folder\YourScript.vbs) 'This will be the path were the scripted you want called will be at. If this is a standalone just take off the = "wscript \\UNCServerName\ShareFolder\YourScript.vbs"
#Windows script host error windows 10 invalid character password#
'Put your Domain Account and Password in between the qoutes, REMEMBER! the Password will be clear text. ' To Run other VB Scripts or even Batch Files with Admin Priviliges' Here is a VB Script Vall Script that will get around the Password Prompt when "RunAs" is called.
