Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

Formating in here-string content.

Hi, Is it possible to give some format to the text within a here-string. I'd like to put in bold some text included in a here-string. Thank you.

View Article


Get-Date -Format d

I am running Get-Date -Format d which is suppose to return the ShortDate 10/30/2012, instead I get the ShortDate 10/30/12.....why isn't the full year being returned? Is it something with Powershell or...

View Article


Excel, error using SaveAs method

I made  ascript to tlist the domain admins for a non technical person to run, to list the domain admins. That works fine. I want to put a nice touch on it though and give them an Excel file to work in....

View Article

How do I get a report or list of user mailboxes and the size of the mailbox.

We are using Exchange 2010 and I don't know where to start with this. Any suggestions?

View Article

Character Encoding for Email

I'm sending email using the Exchange commandlets and it always works fine when I send email to normal Exchange recipients. The problem is that I'm also emailing our ticketing system (Manage Engine...

View Article


Windows Update Query - Remote Computer

I have found 2 scripts which work, one 1 VBS, 1 in powershell The VBS script can query a remote computer: Set objSession = CreateObject("Microsoft.Update.Session", "wsdc05.active.local") Set...

View Article

Powershell and SIM created XML files for unattended installation

Hi there I'm using this as a bit of an experment to see if I can learn to manipulate xml with powershell Background I use an XML file created with Microsoft SIM (part of the WAIK kit) to create an...

View Article

Image may be NSFW.
Clik here to view.

Truncated output w/v3's Out-GridView results - is it avoidable?

[Updated to reflect that it's a v3 issue, not related to Win7 like I originally thought] I have a script that parses a log file, outputting date/time info, errors and XML data using out-gridview. When...

View Article


Why do I receive the error that a property is 'ReadOnly'?

Hello, When I execute the code following this error message, I get the error:  Why?  When I enter $Service.Status at the command line, I get the correct value of the variable, which in this case was...

View Article


Help with automating an AD-query and some checks

Hi, I'm sorry for the somewhat "ambiguous" subject but it was the only way for me to describe my topic :) I'll try and explain what I need in words and for each statement i'll put below the code which...

View Article

It works. but i do not understand why

hi, I need to update on a daily basis ~ 900 security groups. As part of the script I was looking for a way to efficiently delete the members of a group and then add the correct ones. I ended up writing...

View Article

How to exclude Group members and its sub group members of a group in powershell?

Hi All, I would like to export all users from my domain except the members of particular group members and its sub group members. Below is the script I used, but It worked for the primary group but it...

View Article

PS-Remoting Problem

Hello, I wan’t connect remote over powershell to servers with this command: cls invoke-command -computername "zserver01" -script {get-service} The name from the server, why i run this script is...

View Article


gwmi win32_TcpIpPrinterPort | select...| where ... Cant get this working!!

Hei, I got this script, a simple script really, but I cant get the "where"-part working witht the whole script, but it works on its own.. Take a look at the script: $cred = get-credential $Printserver...

View Article

Help Exporting to CSV

Hi, I need to export publicdelegates to CSV file, unfortunately though I need it to export the ntaccountname. $a= get-qaduser -SizeLimit 0 -searchroot "OU" -SearchScope Subtree -ldapfilter '(mail=*)'...

View Article


Get-Member questions

Get-Member seems not to list all the property/method of an object. For eg - $a = Get-ADuser -filter *  -searchbase "ou=test,dc=adc,dc=com" , Now variable $a has all the user account stored in Test OU....

View Article

Error loading Virtual Machine Manager 2012 and Data Protection Manager 2012...

Hi. Very strange issue: when i try to load together Virtual Machine Manager 2012 and Data Protection Manager 2012 modules - script fails. If first loaded Virtual Machine Manager 2012 module:...

View Article


Strange issue with powershells output file not able to run

Hi, i have a script and it basically tests ftp connection to our devices, and we gotta do it the hard way through console script: foreach ($server in $Serverlist){ if (Test-Connection -ComputerName...

View Article

PS Remoting Question - Not sure what is happening

I wrote the following simple Powershell Script in an attempt to change the Home Page of Internet Explorer (Win 7 64 Bit) on a Remote User with PS Remoting Enabled: #### CHECK HOMEPAGE REMOTELY $sb =...

View Article

Copy buffer in ISE 3.0 broken

After upgrading powershell I have found copying and pasting is screwed up in the ISE. Sometimes it works sometimes it doesn't (usually doesn't). I'll copy some text and try to paste it but nothing is...

View Article
Browsing all 2562 articles
Browse latest View live


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