Results into array
Hello,I'm the below works fine but I'm trying to get the results into an array.Basically Write-Host $row.Item("Username") $row.Item("SizeMB"); gives me what I want on the screen but I need to get that...
View ArticleGet-ADUser to Get-Mailbox
I'm running a report with the below script.All our users have an EmployeeID field populated. So I had to create the dump.txt file with:Get-ADUser-Filter'employeeid -like "*" -and employeeid -notlike...
View Article" ForEach" loop problem
I wrote a script that read all users in specific group in AD and get there SamAccountName and put them in txt file, and then get there mail box to anther txt file here is the script:...
View Articlecombine commands or output
I am pulling info with powercli but my question is powershell centralized. Below is a snipit of the code. I set the $vm, $Partitions and $disk variable and collect what I want. My issue is I have...
View ArticleIntroducing PowerShell Desired State Configuration (DSC)
Hello readers! In this blog post I will be introducing PowerShell Desired State Configuration (hereafter called DSC). I will explain what it is and how you can use it so that it can serve as a primer...
View ArticleCopying PowerShell modules and custom DSC resources using DSC
In an earlier article, I showed you a custom DSC resource I built for managing hosts file entries, but I did not tell you that the custom DSC resource must exist on the remote system at a predefined...
View ArticleQuery AD for User Properties from Email Addresses in Text File
I'm new at Powershell and have some code that I've started that is not working. I think I have something out of place. I can pull a list of users from my entire Active Directory. But I need this script...
View ArticlePower Shell Options/alternative
Hi Experts,I have written a complex script, that will copy the users profiles from the workstation to the nearest file server(Based on Sites/Services and various checks on location), when the user is...
View ArticleHow to get Operating system details for linux VM?
Hi, Im using GetsummaryInformation() in powershell script to get the Guest Os operating system details. But it is empty when the machine is offline or it is Linux. It is giving output only when the...
View Articlepowershell O365 - Import-Module : Could not find a part of the path
Hi, I'm try to import some cmdlet from o365 I get this error. Does anyone know why I get this. This happens some time. [PS] Z:\>$global:LiveCred = Get-Credential$global:Session = New-PSSession...
View ArticleNew-PSDrive for URL
HiIs it possible to create a new PSDrive to a URL? I'm trying to script the copying of documents to SharePoint 2010 libraries from a windows 7 desktop machine. I have tried the usual map network drive...
View Articlepowershell O365 - Import-Module : Could not find a part of the path
Hi, I'm try to import some cmdlet from o365 I get this error. Does anyone know why I get this. This happens some time. [PS] Z:\>$global:LiveCred = Get-Credential$global:Session = New-PSSession...
View ArticleTrying to get HKU registry infomation for seven server
I tried get HKU registry information, for a server however, I had to create a PSdrive for HKEY_Users before I could extract the informationthis is my code get-itemproperty -path "HKU:\.DEFAULT\Control...
View ArticleView total memory
What do I need to do to view Total Physical Memory ona) local machineB) Remote machine
View ArticleRead all folders seeking a file
How would I search any/all drivers on a server seeking a certain file? I need to find all *.pst files and find the owner. I know I can use the Get-Acl $MyFile | Format-List to find the owner but how...
View Articlen00b here.. Question about something really simple (i think)
Hi all :)I have a question;Consider this:I have a folder called TEST\;Underneath there are other folders, like A, B, C.In each folder, there is a file called...
View Articlecannot get displayname to show in out-gridview
Need help getting displayname for group as well as groupmember to show up with out-gridview. I must be missing something simple...
View ArticleProblem with .NET Framework 4.5 remote install via PowerShell
I am trying to install .NET Framework 4.5 to the remote Win2008R2 Server via PowerShell session in such way (user is in the server Administrators group):$session = New-PSSession -ComputerName $server...
View ArticleIE history: Days to keep pages in history
Hello,I am tring to configure IE setting by using RunDll32.exe.$Code = 1, 2, 8, 16, 32, 255, 4351$Operation = "History", "Cookies", "Files", "Form Data", "Password", "All Information", "All Information...
View ArticleHow to find all hostnames in DNS belong to single IP?
For example.. I have two A records which belong to 1.1.1.1A.test.com ->1.1.1.1B.test.com ->1.1.1.1How do I use PowerShell to report such IP's which has more than one hostnames?
View Article