Powershell script to check current date against specific date
I set up a runbook in Orchestrator to create service requests for preventative maintenance work on specific equipment. I need to have each runbook trigger on a specifc date regardless of the year....
View ArticleWindows 8 and Metro
I am writing a script to automate some things for my company. But, I can't figure out an easy way to delete Metro icons with a Windows CMD. Any ideas or luck doing this?Thanks!
View ArticlePowershell Script: Add users from an excell sheet(CSV) to an AD security Group
Hi can anybody point me to a link or have a script which I can Add users from an excell sheet(CSV) to an AD security Group Regards Balaraju Nishani
View ArticleScripting taskbar settings changes, etc. mid-session
Hi all,I'm looking for a scripting solution to update certain windows settings - including taskbar and start menu settings (as in things like button combining, rather than the content of the menu)...
View Articleerror with CreateObject("ADSystemInfo")
I am having an issue with a vbscript which i am running to retrieve the computer DN from Active Directory.The desktops are Windows 7 SP1 Pro X64 on a Windows 2008 R2 domain.When i run the scriptSet...
View ArticleSetting Default Printer by Group Membership
Good day,I am looking for a way to set users default printers based on their group memberships, which in itself isn't difficult however I have users that are in the same group but not in the same...
View ArticleHow can I pass domain admin credentials in powershell to create users?
I would like to have my HR department create user accounts for new employees. In vbscript I could do something like Const ADS_SECURE_AUTHENTICATION = 1Set ou_SES = DirectoryService.OpenDSObject...
View Articlevbscript does not save Excel file when running as Scheduled Task
Windows Server 2008 R2 64 bit with Office 2010 Professional Plus 32 bit with SP2I have a VB script that queries AD for inactive accounts, creates an html email and an Excel spreadsheet, attaches the...
View ArticlePowerShell code signing issue
So, I've taken the plunge and signed all my modules that I'll be using on the servers in our datacenter. The actual signing process was much easier than I thought it would be. Locally when I ask...
View ArticleFinding bad e-mail addresses
I am in a large orginization of over 17000 mailboxes and have been tasked with finding a very large number of accounts that have bad -email addresses. Some have an @ at the start, some have a space or...
View ArticlePS Script disabled on this system?
I'm trying to run a PS script and getting the message below. I thought the fix for this was to run, "set-executionpolicy RemoteSigned" & "Set-ExecutionPolicy Unrestricted". I've ran those...
View ArticleDebugging a PS script in another PowerShell Window with elevated credentials
HiHi want to call another a Powershell script from within my current script and run it with elevated credentials. Ideally I want to hit a break point in the second script or at least capture the...
View ArticleTarget Path of Network Printer Shortcuts
I'm trying to find out all the network printer shortcuts which target path matches a certain pattern, then do something about them. I came up with this unfinished vbscript:Set objFS =...
View ArticleNetwork Location with http targetpath behavior
My goal is to reproduced the exact same result with PowerShell as using the network location wizard to create a folder redirecting to an http url for a sharepoint site.Using the wizard, I enter the...
View Articlemove files not matching pattern
Hi all, I need to periodically move files which don't match a pattern ("_PERSISTENT_") from dir1 to dir2. They have spaces in their filenames:-----------------------------------------------_PERSISTENT_...
View ArticleStuck sorting usernames into multiple databases
I need to toss usernames into various databases in some form of automated fashion. I've been thinking about this all day and I'm not able to come up with anything to do this. My current thought is to...
View ArticlePowershell script advice, think I know the problem just need help with the...
Hi everyone. Hope someone can offer some advice on my issue. I have been learning Powershell with the aid of the SQL Server 2008 Administration with Windows Powershell book published by Wrox. Book is...
View ArticleWhere does Add/Remove Programs pull "Installed On" dates from?
I'm working on a VBScript that reproduces the Windows 7/8 add/remove programs list. There is a lot of helpful information out there about the numerous registry locations it enumerates and selects from...
View ArticleUser account create from a text / SQL DB
I am looking for an automation script Powershell/Vbscript...Part 1Script should create a random Username and password and save this info in SQL DB table or in a CSV file.Part 2Take the Input from above...
View Article