How does SCVMM Determine where a VM's VHD will be created
When you create a New VM from Template, SCVMM determines where the VHD will be Located. I'm trying to find out how this would be accomplished through Powershell. Have any Idea's
View ArticleTrapping if the CMD.ExE fails?
Hello!What I need to do is that I have a cmd.exe running a script and it either comes back as Pass or Fails. What I need to do is use a try catch block in my script so that when the cmd.exe fails, it...
View ArticleCreate a network share for multiple users
Guys , I am new to powershell script ...I would like to automate the maunal task which we are following now,whenever a new user joined we need to create a share folder in the network file server...
View Articlescript to pin/unpin metro app from Windows 8 start menu
hi,i was trying to pin metro apps to start menu in a windows 8 machine using the VB script which i was using to pin applications to the start menu of a Windows 7 machine.the script is pinning metro...
View ArticleExchange cmdlets and errorvariable
I'm having a problem with -errorvariable not working with any of the Exchange cmdlets. When I perform a command like "Get-Mailbox -Identity userthatdoesntexist -ErrorVariable myerror", it does not save...
View ArticlePin items to Windows 8 Start Screen
Hi,i am trying to automatically pin items to the windows 8 start screen, found this script but it only works when you add Wscript.Echo "anythinghere" to it, any ideas Set objShell =...
View ArticleChange background image depending on screen resolution
Hello helpful people, I have a task to complete which requires help. I am deploying Windows 7 images through SCCM & would like to create a PowerShell script to change the background from default to...
View ArticleWMI "access denied" error for remote computer
Hi,I'm trying to query the Win32_PageFileUsage using c# and also using "WMI code creator"...
View ArticleUnable to create multiple groups via dsadd command
Hi,I am trying to create multiple groups via dsadd command, below is the command that m using:for /f %i in (group1.txt) do dsadd group %iDetails of new group in group1.txt :cn=LATITUDE ALL...
View ArticleParse a line and report if unusual in Powershell
Hi guys,We have about 800 Servers. On each Server, there is a file that may or may not be wrong. We are expecting one line that contains the word "shutdown.exe" in there - then it would be fine. If...
View Articletest existing group and user in powershell v2
hello,i want to add a user in a group in my script.this function is done by my script but i want to test if group and user exist and sometimes users are in the group , i want to catch the error message...
View ArticleConvert XML to CSV with utf8 encoding in Powershell 3.0 (Windows Server 2012)?
Hi allI've looked through loads of threads, but haven't been able to find a solution, so I hope you can help me.I use this script to convert in Powershell 2 and have been trying all day to get it...
View ArticleEdit $ENV:Path in Powershell - four new functions: TEST-Localadmin not...
Hello,I wanted to use the four new path functions that I got from here (from the scripting guy at this forum):http://gallery.technet.microsoft.com/scriptcenter/3aa9d51a-44af-4d2a-aa44-6ea541a9f721First...
View ArticleUse PowerShell to Find and Remove Inactive Active Directory Users from...
Hi ThereI need to find users accounts that have not logged in in the last 90 days, the issue is we have have nearly 240 sites across the world. I really dont want to have to log onto each domain...
View ArticleStart service using windows domain account
Hi i am trying to write a powershell script which starts ReportServer service using a windows domain account. Below is what i have got so far: $username = "HPA\wms_sql"$password = cat...
View Articlehow to call ssis package installation wizard
I have to call SSIS deployment wizard on clicking on manifest file but instead execute SSIS wizard is opening how to change wizard in below code of powershell, I mean to say here, when I run this code...
View ArticleInvalid use of command 'winrm'
Hello! I'm new in Windows Remoting and CIM. Just trying to change some resources for practice. So I'm sending WinRM commands from Windows 7 to a CentOS 6.4 which runs OpenWSMAN in a VirtualMachine. The...
View ArticleCreate user script not running
Hi guys,I'm trying to run this script from here on my Domain:http://www.computerperformance.co.uk/vbscript/vbscript_user_spreadsheet.htmAs i'm not familiar with LDAP query, what should I put under the...
View ArticleHow can I provide .dlls for Powershell cmdlets?
Hi,certain (custom) cmdlets obviously need assemblies, for example theMicrosoft.ApplicationServer.Core.dll. On another system they came with the Appfabric installation. Since I do not need the workflow...
View ArticlePowerShell to display full path after comparing two file names and sizes?
I'm trying to compare file names and sizes on a source and destination and if they have the same name but are a different size, list the file name and its full path so I know where to go look at both...
View Article