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

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


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


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

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

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

Limit to the length of an array

I'm building an advanced function to parse the security log. It seems when I add a 23rd element to my array $list, the script breaks. As long as I stay at 22 or less, it works. Below is the guts of my...

View Article


PS results into Excel

i Found this inventory script that Jesse Hamrick wrote over att powershellpro.com that gathers alot of wmi info about a selection of servers and sends it to a new excel...

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


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

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


Mastering PowerCLI commands to control VMware vCloud and vSphere

With VMware increasingly abstracting the data center from the administrator's granular control, the command line interface remains a bastion for administrators that want a hairy eyeball and an iron...

View Article

The good and the bad in Hyper-V's PowerShell

As the great virtual war between Microsoft, VMware and various also-rans has rumbled on, many column inches have been devoted to Microsoft's Hyper-V Server.Read More

View Article

run a command with anther user credential

Hi, I wrote a PS script that ruining a command that deal with user email.I have the admin privilege for running this command.By default the mailbox user owner and the exchange admin have privilege to...

View Article
Browsing all 8411 articles
Browse latest View live