Forms in PowerShell: "Select All" syntax behavior seems strange
Hello all,I recently received some great help from Boe and Rhys to get a "Select All" Checkbox working in a Form in...
View ArticleServer 2012 / Export Virtual Machines / Howto generate a log in the Eventviewer
Dear allWe're using the following Script to Export the virtual machines to an external usb drive:Get-VM|Where{$_.State–eq‘Running’}|Export-VM-PathF:\ExportThe Export is working great. What I miss, is a...
View Articleread-host -assecurestring | convertfrom-securestring | out-file
I have tried this command on 3 different PC (2008r2 and win7)read-host -assecurestring | convertfrom-securestring | out-file C:\posh\cred.txtI used the same user account to create cred.txt and run...
View ArticlePowerShell 3 update-help (proxy issues?)
I am running the PowerShell 3.0, as an admin, but update-help is not working. I suspect it does not know that we have an outbound proxy that requires: port, host, username, password. However WinHTTP...
View ArticleFind the length of a string in pixels
Hello all,Wondering if there's a way in PowerShell to find the length of a given string in pixels?
View ArticleDeploying SQL script across a list of servers.
Hi All.I am trying to look for a way to deploy SQL scripts across a number of SQL instances. I found a script on a S website which can be found here...
View Articlequestion about a powershell script syntax
We have a scheduling software called control-m.The command line of one job is like below:powershell -c C:\ExtractScripts\ExecuteSqlScript.ps1 'MyServer'...
View ArticlePowershell command to delete duplicate fils and folders
All,I had to restore some data and it created duplicates with the name [1] and [2] within my folder and file structure. I'm curious if anyone can offer advice how I can search for and find all these...
View ArticleHow to search and replace a string in Excel Shape (textbox) using Powershell.
I have been asked to write a PS script to search/replace a string when found in Excel Shapes when they are textboxes. I have seen lots of simplistic PS scripts and even I can do a "foreach" loop...
View ArticleUsing Remove-ADObject instead of Remove-ADUser - any concerns?
When deleting users, we're going to be running into more and more of them who have children, specifically ActiveSync Devices. Because Remove-ADUser spits an error about them not being leaves, I'm...
View ArticleRemove-ADGroupmember disable confirm prompt
Surely, I am missing something right? I am trying to remove users from a group using:Remove-ADGroupMember -Identity "GroupName" -member $User add it prompts me for each object. I will be scheduling...
View ArticleKeep Receiving: Error is: 'Insufficient access rights to perform the...
Hello. I have a powershell script I run in our domain to disable AD accounts. Part of that also removes the users from all AD groups. That part of my script however keeps throwing up this Error is:...
View ArticlePowershell script to remove Windows Sidebar folder and its contents from...
I am very new to powershell, I just need a method to remove the Windows Sidebar from over 100 Windows 7 machines. I am using domain admin privaleges. This is what I have so far:_____________# List of...
View ArticleSMS_PowerConfigs
Hi everybodyIs there anybody who can tell me what im doing wrong?Im trying to enable the default power management setting on a collection in sccm 2012 r2.All im getting is:Exception calling "Put" with...
View ArticleEmpty/delete mailboxes after test-migration
Hi,We are migrating some 1000+ users from GroupWise to Office 365 and want to do a test-migration before we do a live migration. But is it possible to empty or delete the mailboxes in Office 365 after...
View ArticleHide return text if returnvalue -eq 0
Hi,I have what is probably a dumb question. I just want to know if it is possible to hide the "returnvalue" if it's a 0. As shown in the image my output is always this. I only want to know if its...
View ArticleHow do I output MemberOf so it lines up in one column in my output?
Hi,The goal of the code below is to output the MemberOf info in the same column for each user.So if a user is a member of 5 groups, I need to output the 5 groups so they will all fall under the...
View ArticleCombine output from workflow
Hi, I've got a PowerShell script that runs a workflow. The workflow runs 4 instances of the same script in parallel, each instance querying a different trusted domain. As of now, the output of each...
View ArticleHow do I "pass on" Debug and verbose?
Hi,I've got a function defined as:function Set-NLSBatchManager (){ [CmdletBinding()] Param([Parameter(Mandatory=$true)][string]$environment) Import-DeployUtilities Get-ChildItem . -Recurse |...
View ArticleQuestions on using Runspace for multi-threading
Hi,I have been following the tutorial here:http://newsqlblog.com/2012/05/22/concurrency-in-powershell-multi-threading-with-runspaces/It is not clear to me how to add some functionality that is fired on...
View Article