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

Export group membership of user to csv file

Hi, When I run the follwoing command to display group membership of a user I can see the groups.get-aduser -filter { CN -eq "username" } -searchbase 'ou=users,dc=domain,dc=com' -properties memberof |...

View Article


Filter mails by date - user mailbox, exchange 2007

Hi,I have exchange 2007.I need to get a report that contain the numbers of emails that the user received from DATE X to DATE Y. I need to connect to a user's mailbox and pull out this information, the...

View Article


Beginner Question - Spaces in User Names

I need to write a script like this - New-SmbShare -Name Xfer -Path c:\Users\Xfer -FullAccess Administrators -ReadAccess Users- but instead of Administrators I need to use "Domain Admins" and instead of...

View Article

Removing Text

Import-Module Activedirectory$UserInfo = Get-ADUser Tom. Johnson -Properties MemberOfForEach($Member in $UserInfo.MemberOf | Sort-Object $_.MemberOf){        $GroupInfo = Get-ADGroup -Filter...

View Article

Get matched members txt file specific ad group

Hello,I have a txt file with users SamAccountName (1 column) and need to show only common/matched members for specific AD group (FreeAppli).The goal is to show this list/array in datagrid with 2...

View Article


"Cannot find path ... because it does not exist"

Hi All;I'm in the midst of trying to utilize psremoting with a swath of domain joined machines, but running into what seems like an issue with a simple fix.  Ultimately the idea is that these machines...

View Article

I need to create a script to install an executable on multiple remote 64 bit...

([WMICLASS]"\\$RemoteSystem\ROOT\CIMV2:win64_process").Create("cmd.exe /c C:/InstallSetup/Program.exe /s /v`" /qn")write-host "Successfully installed" But even running this on a single system gives...

View Article

Use multiple columns from a CSV to find an output

hoping someone would be able to help me. I know very basic powershell. I've got an excel table as closely shown below:Name Position Shift Access1   Access2 A        X          W    AA1         AAA2 A...

View Article


Windows Powershell Export-CSV column/row value as filename

Main.CSVCIEnvWeekdayTimeMonthReboot RightsPolicySitevm-xxxxxTest3 friday15:00JanuaryAUTONSUNvm-xxxxx1Test3sunday8:00FebruaryAUTONSUNvm-yyyyyyProd4saturday6:00MarchNoRebootNSUNKindly help me exporting...

View Article


Loop until reg key exists?

.EXE number 1 is called ParentBoot.exe.EXE number 2 is called RebootUtility.exeParentBoot.exe will check for system up time.  If your system has not been rebooted for 'x' number of days it then...

View Article

telnet to one computer from multiple computer to check port is open or not

Hi, I have scenario where i have list of 100s of server . Want to check whether those all server can reach to specified dns server or not by telneting from all server to that dns server . can anyone...

View Article

Removing printers using WMI-Object

I have been tasked with removing several hundred local printers.  I have a spread sheet with PC names and printer names and I am trying to remove the printers using the WMI-Object method.  I have tried...

View Article

read from file

HiI would like to read two log files and compare the numbers.If the difference is more than 5, email should be sent.I want to grep the latest string start with "Media Recovery" and capture the log...

View Article


poweshell write a large data to text file very slower?

first the program read the about 80000 line data,spilt the line,and then write the split object,finish the write text file about 1 hours,very slower,how can i do? $m_point = Select-String -pattern...

View Article

Buy Quality Real And fake Passports,Driver’s License,ID Cards,Visas.

Buy Quality Real And fake Passports,Driver’s License,ID Cards,Visas.  Hello, Getting a fake and a real (genuine) passport, ID or drivinglicense or any other document is simple. we can make you both...

View Article


Get High Quality Real And fake Passports,Driver’s License,ID Cards,Visas.

We produce both real and fake quality  passports,drivers licenses, ID cards,birth certificates,diplomas,Visas,SSN,US green card if in case you have been looking to get a  document/documents then you...

View Article

powershell search contents of text file very slower?

## Create new text file based on the date of today#mu2_20140429040401$mu = "c:\temp\test\mu2_"$tag = "c:\temp\test\tag_"$Date = Get-Date$DateStr = $Date.ToString("yyyyMMddhhmm")$fname_mu = $mu +...

View Article


Generic function to invoke PS code

I have written a custom PS function to allow me to execute a PS command in a loop for a certain amount of time. I need this because certain calls, to especially MS Exchange, have a habbit of sometimes...

View Article

Image may be NSFW.
Clik here to view.

RSAT for Win10 Tech Preview New Parameter

I came across something quite interesting while using RSAT for Windows 10 Technical Preview. Looks like there'll be a new parameter on Add-AdGroupMember called MemberTimeToLive. It's kind of annoying...

View Article

Office 2013/365 autorepair on powershell

Hi,I have a challenge i cant get through.I have searched the net for a powershell script to QUICK repair and FULL repair a office 2013 and 365 installation, and i CANT find anything on this....

View Article
Browsing all 6937 articles
Browse latest View live