Quantcast
Browsing all 21975 articles
Browse latest View live

Applying GPO to OWA feature when creating new mailboxes in Power Shell

Hello all,I'm a super rookie with Power Shell and would appreciate a little assistance. I have a script that will create mailboxes from a CSV file and it works fine but there are a few things I don't...

View Article


Select-String Pattern

Hello,I have this script:cls $InetDrop = "c:\Temp" $contains_stagingSP2010 = Get-childItem $InetDrop -filter *.eml -Recurse | ` Select-String -Pattern ((' Staging *') -or (' SStaging *')) -AllMatches |...

View Article


How to get powershell output on to a textfile ?

Now I want to get the whole powershell screen onto a text file without having to select all with the mouse which takes forever. Is there a command or one step easy process where i can output any power...

View Article

Image may be NSFW.
Clik here to view.

normal CSV file to a fixed record-size text file

Has anyone seen a utility written in PowerShell in a public repository that would take a CSV file and write out a fixed length record text file where each field of data in the CSV would occupy the same...

View Article

Set registry rights and change Component Services with Powershell

Hello,we must install a lot of SharePoint Server 2010. After the installation, we have to do every time the same thing.Change the registry owner for the 2 key's:...

View Article


Splatting Query - Null Values

I'm looking for recommendations on the best way to deal with null values with splatting.Take the example of updating title, department and telephonenumber on an aduser.The following looks tidier, but...

View Article

how to run as admin powershell.ps1 file calling in batch file

I prepared one batch file .that file contains powershell file complete path to execute .i want to execute this powershell file as run as administrator. My batch file contains below textpowershell...

View Article

Adding x500 addresses to multiple user objects using CSV input file

HelloI need to add an x500 entry containing the legacy DN from our previous mail provider to the proxy address attribute for all our AD users.I'm using a CSV file with the following format user,legacy...

View Article


get duration of a mp3 in seconds

how can I get the duration of a mp3 file in seconds ?In need in seconds because  I use start-sleep and this cmdlet use -seconds parameter ..I found a module that "read" the information about  files,...

View Article


Read the content of "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"...

hi, I'm new in PowerShell but I want to learn about this language! have someone a idea about how can I Read the content of  'HKCU:\Software\Microsoft\Windows\CurrentVersion\Run' ? I want to read the...

View Article

Powershell: Read-Host not working when ran from jump drive

I am writing a script that will get a data count off of HDDs that we work on.  Everything is working and when I added a Read-Host so that you could enter the drive letter of the connected HDD it worked...

View Article

How to filter on * without using wildcard

Hi I hope you can help. I have to Get-ADUser -filter where displayname MUST contain a star  It seems that PowerShell thinks I am using wildcard - I am not - I want to list users with a star * in their...

View Article

"Select" Problem with leading underscore

In my script I am trying to use "Select" on _Server, DisplayName and Version.  Unfortunately it displays everything except  _Server in my csv file. How do I fix this?My script:Get-WmiObject -Class...

View Article


Copy-item script ... this is blowing my mind

all I want to do is take a folder and ALL folders and files within & copy them to a block of servers, but the following fails:$Servers = import-csv -path "c:\WebServ.csv" $path1 = get-item -path...

View Article

Download webpage using powershell

I'm using the following code to try to download a webpage in powershell:$web = New-Object Net.WebClient $web.DownloadString("http://fqdn/rs_server.dll")But it just returns to a PS> prompt.  No...

View Article


Calendar permissions for all in Office 365 using PowerShell

Hello all,In office 365, what I am trying to achieve is to give everyone , everyone's full access to calendar permission.Meaning, If I have 10 users in O365, every one  must have everyone's calendar...

View Article

Email function + Monitor Serial Numbers

Hello,I am a newbie Powershell scripter, but have put together something that is mostly functional. The problem I have is that I have the information I need but once that info is put into a variable to...

View Article


Image may be NSFW.
Clik here to view.

not finding RDSConfiguration in Remote desktop services

when i go to cd RDS: and do DIR i see only LicenseServer not RDSConfiguration because of which i am not able to go to RDSConfiguration and change the session limits. Please refer the image for more...

View Article

powershell script import exchange contacts from a csv file (advanced version)

Hi all. I'm tryng to create a scheduled task that runs daily, where it will create new users, update (modify) exisiting users and delete users based on a comparison between users in a csv file and...

View Article

Image may be NSFW.
Clik here to view.

New-SPConfigurationDatabase : Microsoft SharePoint is not supported with...

I'm using the AutoSPInstaller from codeplex and now recieve this error. Is this a problem of my server or is it something I defined wrong in the configDB?The following is my signature:Powershell...

View Article
Browsing all 21975 articles
Browse latest View live