Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 8583 articles
Browse latest View live

My First Experience w/ PowerShell 3.0

You are all lucky enough to read about my first experiences with PowerShell! For those of you that do not know, PowerShell is a scripting language; which is used for creating temporary fixes and to...

View Article


Constrained Endpoint with OU delegation

My Active Directory and OUs are setup like this. "Distrinct1," is an OU and has help desk employees who support users under the "District1" OU. "Distrinct2," is an OU and has help desk employees who...

View Article


simple question about variable in function

Hi,example function :Function Add ($x, $y){$Ans = $x + $yWrite-Host “The Answer is $Ans”}this function sum $x and $y and put the result in $Ans.to run the function i will write:Add 8 2the output will...

View Article

Parse a text file

Hi Guys,I have to parse a text file with recurring informations from different items. Looking like this.Slot #1Servername: SRV00001Type: BladeModel: DellSlot #2Servername: SRV00002Type:...

View Article

AD group member count - Memory issue

Hi Guys,Im attempting to write a script that does a count of users in specific groups & regions. So basically if the group is part of specific OU then do a Get-QADGroupMember and increment the...

View Article


replace XML tag have datestamp with current datestamp using power shell

<ConfigurationConfiguredType="Property"Path="\Package.Variables[User::ConfigFilePath].Properties[Value]"ValueType="String"><ConfiguredValue>\\server\S_Repository\P_name\P_Dependencies_03152...

View Article

Need help with slitting one command.

Ok so I am quite new in using powershell and don't really know all the commands as of yet.I'm trying to create a command to get a computers name for example a or b  to copy a file a file to either a or...

View Article

Joining variables together

I have only just stated learning PS and I want to create a folder path using variables.This is the script$root="C:\pstest\"$folder=import-csv "C:\pstest\folder.csv"Foreach ($directory in...

View Article


List AD Users and All Groups in Excel

I Need a Script which lists all AD Useres with all their Groups and all ADGroups "not Member of" in one row in the same order. So the result is like a Matrix I did a Script with a Hashtable, which...

View Article


Windows Server 2012 For Small Business: The Key To Better Virtualisation?

Technology is a key driver for any business’ ability to grow and scale – something which a huge 85 percent of UK small businesses recognise. That’s why those who stay abreast of the latest IT...

View Article

A Python Developer's Guide to PowerShell

Python is a great scripting language - it's available by default on Linux and Mac and so it's easy to quickly write a short script that runs on many systems. However, this isn't the case on Windows....

View Article

Windows Server 2012 Remote Server Management

Windows Server 2012 introduced a staggering number of changes in virtualization features: an updated Hyper-V, desktop virtualization with new Remote Desktop Services, and much more. Read More

View Article

PowerShell 3.0 Remoting vs PS 2.0

For the past few months I've been using PowerShell 2.0 with Remoting set up through Group Policy. Recently, the Microsoft Management Framework 3.0 came out as an optional update. We sent that update to...

View Article


Input parameters not available when calling powershell script from VBA

Hello. I am having some issues when calling a PowerShell script from within VBA. The issue seems that the input parameters to the script do not seem to have a global scope as they do when you call the...

View Article

how to not concern invoke commad 's return?

thanks nohandle ,i will question the net map question.now i have a new question:                              env:pc1/2/3 use xp , all installed powershell v2  pc1 want to use invoke  pc2,pc3  for...

View Article


Exchange CmdLet Error

Hi! Im wondering if anyone else had any problems catching specific errors from Exchange 2010 cmdlets? It seems like no matter what I do the only way to catch an error is by not specifying the error...

View Article

View installed updates.

Hi,In powershell is there any cmdlet or any other way to list all the installed updates on a windows 7 PC. I have tried Get-Hotfix but it not giving the total list of updates installed on a PC.

View Article


Newbie Guidance Required!

I am fairly new to Powershell - been studying it for a month now.I am not even sure that this is possible but here goes;I have several folders on a certain server containing images of people who work...

View Article

move file to destination getting error

$deployment = New-Item $rootpath$e$m"Deployment_$((get-date).toString('yyyyMMdd'))" -type directory$MoveSTAGEdtsConfigFileToDeploymentFolder = Move-Item c:\temp\STA\*.dtsConfig $deploymentfile is not...

View Article

Check a valid DATE format

Hi, I tiring to check if the user input is valid DATE format DD/MM/YYYY and it's not NULL,I tried to use "TryParseExact" command but I get error:"TryParseExact : Cannot find an overload for...

View Article
Browsing all 8583 articles
Browse latest View live