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

Why there is no full-screen on maximizing Windows shells?

Following steps:Open Cmd or PoweShell in Windows 8. Type in wmic, MaximizeType in exit (just once)Start working in full screen..led me to work in fullscreen mode in Windows shells (CMD/PS). My question...

View Article


Import / Export PST's Commands SBS 2003 & Exchange 2010

I'm Migrating from SBS 2003 to a new domain on Server 2008r2 Exchange 2010.  I'm going to test out the command below when importing the PST.  As long as the alias's match, I believe it should work.  Is...

View Article


Installation

I am using PoweshellGUI Script Editor 3.0.6.21 and I tried to install the NTFSSecurity.  It gives the following error:Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find...

View Article

Help Viewing Event Logs

hello,I'm trying a slightly complex query against a remote event log and struggling to get this working correctly.Get-EventLog -LogName Application  -ComputerName xxx123 -Newest 75This works, and gives...

View Article

Fehlende Hilfe bei der Powershell V3

Warum wurde bei der PowerShell V3 die Hilfe nicht gleich mitgeliefert? Ich komme zu Problemen, wie fehlender Internetzugang, Hilfe zu dem Modul ist nicht im Distribution Point verfügbar, oder auch...

View Article


How to invoke a PowerShell command programmatically?

For reference, I'm trying to invoke a PowerShell command on a Windows Server 2012 vm, the code is being written inVisual C#:Long Version:I'm making a dll to run during the installation of one of our...

View Article

parsing multiple FilterSIDs when using Get-Lastlogon cmdlet.

I've been using the excellent Get-LastLogon script by Brian C. Wilhite (gallery.technet.microsoft.com/scriptcenter/Get-LastLogon-Determining-283f98ae).But I'm struggling to adapt the code to allow...

View Article

track mssql & windows failed logins

Hi, I am trying to modify a script that i found on:http://serverfault.com/questions/233222/ban-ip-address-based-on-x-number-of-unsuccessful-login-attemptsThe above script works ok for failed windows...

View Article


Powershell Logon script that can't be killed from Task Manager

Hi,I am having a power shell script that runs as a logon script.  The script is critical and I want to prevent users from killing/stopping the process from Task Manager.  I can't give admin/system...

View Article


Import a CSV file and append a Column with Data

I am trying to import a CSV that contains records that I wish to append a column with data to and then output the CSV again. It's not working as expected and I could use some help. Thanks in...

View Article

Get content out of "notes" field in Active Directory Distribution Group

Hi,I have a Problem with my powershell script for an AD Report:I like to get the Content out of the "notes" field from an Active Directory Distribution Group. Like to run through the AD and only catch...

View Article

Install fonts in windows7 with powershell

Hi all, I simply cant figure out how to install fonts, to a windows7 desktop with powershell. Copy the files to $fonts isnt enough, as you have to register the fonts into the registry Does anyonw know...

View Article

Get string from file

Hello,I parse rtf file with powershell, I get also the content to a variable.This is a part of the content from rtf file: because of a subscription created by [DEV_test_collection]\Project Now the...

View Article


Password Protected Software Uninstall

Hi all, I have a situation where there is a password protected installation that needs to be removed from workstations. I have the following script but the Uninstall method ReturnValue is 1603.$app =...

View Article

Exchange Info via PS in webpage

Good MorningI am in the process of trying to publish some useful exchange info as a webpage so colleagues can check the info when it is scripted to run each morning, however because i am pulling...

View Article


Creating help for a function with the CmdletBinding attribute

I've added help documentation to most of my functions however one function will not display the help info (when using get-help) and the function used the CmdletBinding attribute.  Does help...

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 I...

View Article


WellKnownObjects from AD

I am looking to us Powershell to identify the location of the Deleted objects in Active Directory using .NetFramework. The information seems to be saved in the WellKnowObjects attribute which I can see...

View Article

Disable button after 3 presses

I thought this would be an easy one, but Im scratching my head.... Just need to allow the user 3 button presses before it becomes greyed out. Here is my code:$PostponeButton_OnClick= {...

View Article

Encode E-Mail with Powershell

Hello,I send from TFS Server over outlook connector a mail to one server.But the e-mail is encoded.I want to parse this e-mail because I want to trigger a process.How can I encode a e-mail at drop...

View Article
Browsing all 21975 articles
Browse latest View live


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