Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live
↧

Preventing a user from modifying their Account

By Jonny's space Since moving to the current release in the Outlook.com datacenter, new PowerShell cmdlets have become available that facilitate the creation of security groups, with which a Tenant...

View Article


Disable the Instant Messaging Widget in Outlook Live - Windows Live

Some schools however dislike the use of messenger, and would prefer to have this widget removed… this can be achieved in the all powerful PowerShell (thanks to Kumarswamy Valegerepura from the Exchange...

View Article


Powershell to connect to outlook live@edu

$Cred = Get-Credential$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic...

View Article

encrypt password in script

Hi,is there any way to encrypt a plain password in a ps1 script when the scriptis not running with the user, the encrypted password was created in a txt file?The script is running with Enterprise...

View Article

Powershell save as and name as variable

Hello,I recently discovered powershell and I am quite impressed with what I can do with it. I found this code online (from this site actually) and need some manipulation to it.Ā $code ='$helper =...

View Article


Finding Servers on Network Using SSL Certificates

Hello.Ā  Recently MS announced that they would no longer support SSL encryption less than 1024.Ā  We have some internal servers on our network that have encryption that is less.Ā  I need to locate all of...

View Article

Using GWMI

Hi,I am using the following to retrieve the version of windows from multiple servers, it works fine, but how can I modify it so that it also lists the server name ? The server names are in the...

View Article

Start-Transcript output to file only and not to file and console

HelloWhen running a PowerShell script usingĀ Start-Transcript with in the script, is it possible stop the console output once Start-Transcript is running.I cannot use powershell.exe -file myfile.ps1...

View Article


Select-String question

I am writing a PS Select-String to extract out all SQL SELECT statementsĀ from a text file.I am looking extract all SELECT statements. Each SELECT statement terminates with a ;Ā Ā Ā Ā Ā Ā  character.I can...

View Article


Learn Windows PowerShell In a Month of Lunches: 7.4 Pipeline Input...

Hello Don,The example in 7.4 is as follows: Get-Process -name b* | Stop-ServiceIn the explanation, points 6 refers to the -Name parameter of 'Get-Service' and point 7 says that 'Get-Service' will...

View Article

Can I open notepad etc. on remote server/computer using PS?

Hi guys,I am trying to learn power shell to be more effective at work. Basically I know little bit of Exchange PSĀ cmdlets and small scripts but I want to learn more.What I am trying to figure out is if...

View Article

Console output in cmd.exe, and powershell.exe through C++

OS: Windows 8 x64 Rus;IDE: MS Visual Studio 2012 Enu;Language: C++I know a simple way for correct displaying of localized chars on Cmd.exe. But how can I do same for Powershell.exe?My...

View Article

How can I run a script within a pipeline

Hi,I have the following line of code that is called from a batch file and scheduled to run at a certain time of the day.Get-Content d:\servers.txt | .\Retreive-Network.ps1 | Out-DataTableIt does not...

View Article


Still waiting for my limited edition (handsigned) copy of powershell V3 lunches

Don, sorry to bother you with this but maybe you have some answers?On august 1st I ordered and paypalled for theĀ "PowerShell in a Month of Lunches" Limited Edition 2 Book Lunch SetItem# LUNCHPAK, since...

View Article

Change credentials when running powershell script

Hello,I have a powershell script to get the drive sizes of servers specified in a text document. The problem I have is that several of our servers are in a DMZ and require different login...

View Article


Getting the number of actual physical disks in the HP RAID using WMI

Hello All,I wounder if someone can help me with the following question please.I have a number of HP DL Servers which have the useual RAID setsLets say I have two physical HDD in a RAID 1 (mirror...

View Article

Connecting to a message queue

For a while, I've been testing a message queue using the following code:$q = new-object system.messaging.messagequeue($qname)$msgs = $q.getallmessages()Yesterday, it quit working. By fiddling around, I...

View Article


PSCustomObject and Select-Object Expandproperty

Hi there!I created the following pscustomobject with a nested pscustomobject. Interestingly after Select-Object -Expandproperty the source object is changed. Do you have an answer on that?# Create...

View Article

Sharing Credentials Securely with other users for PoSh scripts

I've definitely come by this before on the internet but I can't for the life of me find what I found before... Don Jones has mentioned in one of his workshop videos the ability to write a tool, give it...

View Article

Early Filtering of Win32_NTLogEvent class

Hello All,Can someone please help with the following query :)if I do the following I have to wait until all warning events are collected by WMI before they are then passed down the pipeline to select...

View Article
Browsing all 10624 articles
Browse latest View live