How to set a default printer using vbs on windows 2008 R2 with remote desktop...
HelloIt seems I wasn't in the right places before / threads. BIG Sorry.Here's the problem: I have this VBScript:On any computer, the Default Printer "HisBadPrinter"strPrinterName = "mySuperPrinter" Set...
View ArticleHow to tell how many WMI connections are open
Is there a class that can be queried to tell how many people are connected remotely (or locally) to WMI?I looked over ProviderHostQuotaConfiguration class and that is more about configuring the number...
View ArticleEnable Java Plugins using bat files
I am trying to automate IE settings using a .Bat file. In the process, I need to enable java plugins in IE settings. Basically the steps to be performed on Internet Explorer is : Tools -->Manage...
View ArticleHow do you get the filepath length with Powershell
Hello,Got another semi tricky issue that I need input on. I need to be able to input a file name and get the file path length. For example:"projects.xlsx" = 254 Characters I need this because I have...
View ArticleWindows Back Up Notification Mail
I am able to send mail on sucessfull backup and failed backup, but need to attach all details that is available in details tab of Eventviewer in logs of (Microsoft-Windows-Backup). Bala
View ArticleStandard Output
Normally, PowerShell.exe's cmdlets output text(or XML) to the standard console window.How to redirect PowerShell.exe's cmdlets to a standard output handle ( specified by the program that instantiated...
View ArticleEnumerating the offline folder cache
HiDoes anyone know if it's possible to script reading the offline folder cache on Windows XP. I know you can use csccmd to list what files and folders are flagged as offline but I'd like a script that...
View ArticleHow is this function works? Powershell
Hello,I need help because it seems i have a basic missunderstanding about functions.I have this function:Function Rights ($user, $ShortListName, $permission){ $site = new-object...
View ArticleJscript Read Folder and Sub Folders
hi gurus, found this nice code Jscript to list all files in a folder, but how can I do a listing of all the sub folders?<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"...
View ArticlePowershell with logmein rescue
I have been trying to run powershell scripts on remote machines not in a domain, AD or server. They are stand alone machines ranging from xp sp3 to the current win 8. We use logmein recue technician...
View ArticlePowerShell script collects software information based on the compute name...
Hello,I have a PowerShell script that collects the software installed based on the compute name provide. When I execute, I get the error "Exception calling "OpenRemoteBaseKey" with "2" argument(s):...
View Article"Set as desktop background" from vbs
Hello all,There have been quite a few posts, in quite a few places on changing the wallpaper via something like:Option Explicit dim wshShell, sUserName, oShell, oFSO, sWinDir dim wpSet wshShell =...
View Articleexecute all sql scripts stored in certain folder and if any script fail in...
execute all sql scripts stored in certain folder and if someone fails in between then loop should exit and record error #run sql scripts/sps from folder C:\MyTSQLScripts and if any error ocour then it...
View ArticleRobocopy and powershell logfiles
Hi, I am using a powershell script that contains also some robocopy statements. Powershell writes a logfile: "log-statements" | out-File -Append Logfile.txtI tried robocopy to use the same logfile:...
View ArticleRemoving only exchange license using PowerShell in Office365
Howdy Scripting Guys and Gals,This is an Office 365 PowerShell Question. I'm trying to write a script that will only remove a single sku part from a user license. In other words, I have user that...
View Articleformat data for a distinguished name splitting
hello,i want to format this request in a list but i think its not an object that i can selectcan you help me to get this format xxxxxxxxxxxxxxxxand not this format xxxxx xxxx xxxx xxxxmy script is...
View ArticleBatch programming
Hey pls help me how to write a program that find file from localC andD in batch programming language??
View Articlevb script to check if Network Service account has read and execute or write...
I have an installer that creates a directory on the user specified location. and the owner of this directory has to be Network Service account. After creating directory with the administrator, I grant...
View ArticleCombine results of two commands into a CSV
Hi guys,I need to export group membership information into a CSV. So far I have the following which is not working...$ADGroups = Get-Content "Groups.txt" ForEach ( $ADGroup in $ADGroups ) {...
View Articlevb script
in windows 7, what is designed to replace VBscript for scripting and performing actions at the command line?
View Article