Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

from txt file to csv and open in multi collumns using powershell

0down votefavoriteI read a lot of articles, but now i'm kinda stuck. I use this code to extract all the databases from a sql server and the size & freespace...

View Article


Register-PSSessionConfiguration error

Hi everyone,I didn't know where I could put an helping solution for someone would have this issue because I found it by myself. So maybe it could help.Case:There may be a case where you have a user...

View Article


PowerShell Bug in Test for True?

Good Afternoon,I tried to put this through Connect, but it seemed unhappy about my attempts to get to the PowerShell listing. So I thought I might post this here. In a script I am testing for a...

View Article

Filtering Null $_.GivenName accounts

Is there a way for me to filter out the Null user accounts from my script if the GivenName object is blank from users that are in a certain OU $properties = @( @{ N = 'First Name'; E = { $_.GivenName }...

View Article

Get-MsolUser Returns All Results as True

I'm attempting to find a list of all students who have a license for Yammer.Get-MsolUser -All -Title Student | Where-Object {$_.isLicensed -eq $true -and $_.Licenses.ServiceStatus[2].ProvisioningStatus...

View Article


(SO) Regular expression ... weirdly! (very, indeed)

As you can see here, http://bit.ly/2jxiNky people like to complicate what is, naturally, simple.▪

View Article

Date of most recently installed update

Hi All,I'm looking for a PowerShell script that help me manage my Windows servers who receive updates from our internal WSUS server. We are using WSUS 3.0 running on a single Windows 2012 R2 machine.In...

View Article

Emails sent report - Exclude self domain

Hi All,can anyone help me with generating emails sent report by user ? but report should not include self domain.example : suppose my id is atul@abcd.com so if I am generating report for myself then...

View Article


Renaming a computer takes it out of domain

Hi, I use a powershell script to rename our domain computers, it's just: Rename-Computer -NewName $computername -DomainCredential $mycreds -Force -PassThru 90% of the time works, but in some cases,...

View Article


Run Powershell script as Scheduled task, that uses Excel COM object

What am I missing here.. I have  Powershell script that uses the Quest AD cmdlets to get computer information from AD and populate an Excel spreadsheet with the data.The script works fine, so I created...

View Article

Powershell secure string to string

Hi to allat first I know that saving a Password in a string is not good.I have to do this, couse I am Aiming for an system that does not recognise Secure Strings and cant handle them.so i need to...

View Article

Powershell - Running an Msi on a remote computer

What im doing is writing a script which takes the size of an MSI file via its -FilePath and then compares it to the C:\ Drive to see if there is enough space to install. I have also added the Parameter...

View Article

Formatting gets wonky when using add-content before out-file

PS novice here. Server is running PS v4.I'm trying to get a simple list of members in a group to a text file with the proper headings. When I run this - add-content -path c:\temp\text.txt -value...

View Article


Powershell Exchange 2007 Distribution lists

Need to know powershell command(s) to run to query exchange 2007 for all distribution groups with the name "DL_Stores".Also want to only include the following, as I'm trying to assess what is or isn't...

View Article

foreach pass varible data to export-csv

I want to pass the data I'm testing in each foreach to the record collection of export-csv.Example:ForEach ($Zone in $Zones) {$Results = $Zone | Get-DnsServerResourceRecord -ComputerName $DNSServer |...

View Article


foreach pass collect all data to one export-csv command

I want to collect the data in each foreach to the full record collection of one export-csv. Example code where i get a single file for each zone. ForEach ($Zone in $Zones) { $Results = $Zone |...

View Article

Create new Web App Deployment type using Set-CMWebApplicationDeploymentType

I'm attempting to load a list of WebApps into SCCM 2012 R2 with PowerShell.  I know how to create the applications, but when it comes to adding the deployment type, I'm encountering an issue I can't...

View Article


error on get-help get-service -showwindow

Get-Help : A parameter cannot be found that matches parameter name 'showwindow'. At line:1 char:33+ get-help get-service -showwindow <<<<    + CategoryInfo          : InvalidArgument: (:)...

View Article

Unable to access Sent folder using MAPI

I am using following script to access delegate users mail box but unable to access Sent folder. It is throwing following errorException calling "GetInbox" with "1" argument(s): "Sorry, something went...

View Article

What version of WMF am i running

Hi all. I have a 2012 R2 Datacenter VM in my lab.I want to install WMF V5 so that I can do a MVA course on line however when I try to install WMF 5 I get a generic answer saying it is not for this...

View Article
Browsing all 21975 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>