The Receive-Job Keep parameter is required if you want the data contained in the job to remain available. if you don’t use the –Keep parameter (a switch) the data will be deleted. Its a pain to remember to use the Keep parameter. I’ve been working with jobs a lot just recently and the number […]
Archive for September, 2019
Receive-Job Keep parameter
Posted by: richardsiddaway | September 29, 2019 Comments Off on Receive-Job Keep parameter |PowerShell Day UK 2019 slides and code
Posted by: richardsiddaway | September 29, 2019 Comments Off on PowerShell Day UK 2019 slides and code |Had a great day at PowerShell Day UK 2019. The PowerShell Day UK 2019 slides and code for my session are available at https://github.com/RichardSiddaway/PSDay2019.
UK PowerShell day is Saturday
Posted by: richardsiddaway | September 26, 2019 Comments Off on UK PowerShell day is Saturday |The UK PowerShell day is Saturday – 28 September – two days away. If you want to be there tickets are still available – https://psday.uk/ If you’re going – say hello See you there
PowerShell v7 preview 4 adds a Ternary operator to PowerShell. A ternary operator is a way to provide shortened coding for a simple if-else block. Its an operator that takes three operands rather than the usual two hence the name ternary. for example PS> $a = 5 PS> $b = 3 PS> if ($a […]
Get-ExecutionPolicy
Posted by: richardsiddaway | September 24, 2019 Comments Off on Get-ExecutionPolicy |I’ve used Get-ExecutionPolicy since PowerShell v1 and never stopped to think about it. The cmdlet normally returns just the current policy PS> Get-ExecutionPolicy RemoteSigned However, if you dig a little deeper PS> Get-ExecutionPolicy -List Scope ExecutionPolicy —– ————— MachinePolicy Undefined UserPolicy Undefined Process Undefined CurrentUser Undefined LocalMachine RemoteSigned What you’re seeing is the […]
PowerShell v6.2.3
Posted by: richardsiddaway | September 17, 2019 Comments Off on PowerShell v6.2.3 |PowerShell v6.2.3 is available from https://github.com/PowerShell/PowerShell/releases It fixes a debugging performance issue and updates the .NET SDK and runtime framework version. Similar fixes are available in v6.1.6 released at the same time
Hyper-V VM IP address
Posted by: richardsiddaway | September 9, 2019 Comments Off on Hyper-V VM IP address |Saw a question about getting the Hyper-V VM IP address. One thing with Hyper-V is that the VM has to be running for you to retrieve the IP address. Once you VM is running you can get the IP address PS> Get-VM -Name W19ND01 | select -ExpandProperty NetworkAdapters | select VMname, Name, IPAddresses […]
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS