Function Parameter Selectlist
When I use the function I would like it to get a dropdown list of "ValidationSet" after I typed in"My-Function -Selected " Function My-Function ( [CmdletBinding()] [Parameter(Position=0,...
View ArticleReport of ad user based on group member ship
Team, can we get report from AD based on the group member ship, we need to find user's which are not log in ad from 120 days . these users are part of any specific security group. Regards, Triyambak
View ArticleMultiple select-object in one powershell
I am piping the output of one PS command into another command, and then displaying the resultant set via the select-object command. However I am not able to display any field/column from the original...
View ArticleError when running Get-ADAccountAuthorizationGroup cmdlet
I am trying to retrieve a list of all the groups a user is a member of. I ran the command:Get-ADAccountAuthorizationGroup username and received this error:The server has returned a no matching security...
View ArticleNeed to recursivley get folder name and append to files
As I process folders I want to capture the folder name and append to each file I process in that perticular folder. THis is a script I have that appends a file name to the end. I want the folder that...
View ArticleWrite-Error in script method writes nothing
Powershell newb here. Could someone enlighten me as to why "error 2" below is not getting displayed?------------------- function New-Log() { New-Object Object | Add-Member ScriptMethod Error...
View ArticleHow to unlock nokia lumia 520
http://www.andengine.org/forums/tutorials/getn-watch-endless-love-online-free-movie-qhd-full-t15029.html...
View ArticleWhile loop hangs in my script
Hi guys,I want to check if SCCM (install windows image) is ready.If it's not, than it has to sleep. I want this in a while loop because when it takes longer, it must loop another5 minutes.When the...
View ArticleWindows Powershell has stopped working
Hi,I am getting an error during Windows logon, which says "Windows Powershell has stopped working". When I looked at the event logs, I found the below event in App logs. Can you pls help what is going...
View ArticlePowerShell - Rename Contents of File Using names From CSV
I have the following script where the user is asked for the file server IP address, the IP is entered and the gpreport.xml file modified as needed.$file_server = Read-Host "Enter the file server IP...
View ArticleGet-process mainwindowtitle for all users
I have an application on a server that must be run in a user's session, and multiple instances are open which connect to different databases. In the account they run under, the window title will be...
View ArticleAutomate PowerShell Install
Hello,I am really new at this. But I am trying to deploy PowerShell 2.0 to our environment. Is there a way to automate this? I know we will have to remove PowerShell 1 first.I hope I am asking the...
View ArticleUsing select with get-adgroupmember
Hello all. What I would like to do may be a bit tricky, but maybe not. This simple bit of code will get the members from a group and list the group name along with each member. Easy right?$group =...
View ArticleWindows 2008, PowerShell 2.0 isn't able to load FailoverClusters module, says...
Hi all.On our Windows 2008 SP1 Server running a Windows Cluster (not R2) I've installed PowerShell 2 (KB968930) but when I attempt to run this:Import-Module FailoverClustersIt says the module couldn't...
View ArticleAuto delete everything but specified folder contents from txt file
Hey Guys,I am brand new to using Powershell (like 48 hours into using it for work) and I've run into a bit of an issue. I've only taken a programming concept classes so some of the stuff makes sense...
View Articlehow restore damage environment variables
hi all, i damage in some way my environment variables and now im unable to run anything with elevation.The only command that i use was:[environment]::setenvironmentvariable("Path",...
View ArticlePowershell - Parse Data Returned from Web Request
$result = Invoke-WebRequest http://partsurfer.hp.com/Search.aspx?SearchText=614988-B21Now, I want to grab two lines in the output that looks like:Product Number : 614988-B21 Description : HP SCO8E 6 GB...
View ArticleActive Directory/Powershell Name Formatting - Proper Title Case & processing
I'm getting a nightly feed from our HR system with user information. I'm trying to use this feed to create and maintain Active Directory. The folks that enter the data are a little less than...
View ArticleRemove characters except numbers from variable string
Hi, my script queries some linux servers for ram memory, but it returns the value as:$ram = MemTotal: 3521384 kBIs there a way that i can remove all characters except numbers from the...
View ArticlePower Shell vs AutoIT
How does Power Shell compare to AutoIT in terms of:1. functionality2. complexity 3. learning curveCurrently my interest is for non-GUI functionality, especially for disk/folder/file management, PC...
View Article