Download Attune CE

Basic PowerShell Commands on Attune

Exported on 11-Nov-2021 11:47:01

POWERSHELL BASIC BLUEPRINT

This is a Blueprint of Basic PowerShell commands on Attune

Parameters

Name Type Script Reference Default Value Comment
Attune Node Windows Server attuneNode This is an Attune Node
Attune Node Credentials Windows OS Credential attuneNodeCredentials This is my Attune Node Credential

1 - Welcome Script

WELCOME SCRIPT

This is a welcome message script from Attune

The connection details have changed from the last step.

Login as user on node

  1. Connect via RDP
    mstsc /admin /v:Attune Node
  2. Login as user {Attune Node Credentials}
  3. Then open a command prompt
This is a PowerShell Script make sure you run it with powershell.exe Click start menu, enter "powershell" in the search bar, then select the powersehll program
# Writes the text infront of the CMDLET
Write-Host "Welcome to Attune" ($env:USERNAME).Split('.')

2 - Get PsVersion

$PSVersionTable

This is an automatic variable that gets details about the version of PowerShell running on the Target Machine

Login as user on node

  1. Connect via RDP
    mstsc /admin /v:Attune Node
  2. Login as user {Attune Node Credentials}
  3. Then open a command prompt
This is a PowerShell Script make sure you run it with powershell.exe Click start menu, enter "powershell" in the search bar, then select the powersehll program
# Writes the text in front of the CMDLET
Write-Output "Below is the Version of PowerShell Running on your PC/Server"

# Pause the script for 3 Seconds
Start-Sleep -s 3

# Get the PowerShell Version running on the Server
$PSVersionTable

# Writes the text in front of the CMDLET
Write-Output "Complete"

3 - Get ComputerInfo

Get ComputerInfo

This gets all operating system properties of the Target Machine and echos it.

Login as user on node

  1. Connect via RDP
    mstsc /admin /v:Attune Node
  2. Login as user {Attune Node Credentials}
  3. Then open a command prompt
This is a PowerShell Script make sure you run it with powershell.exe Click start menu, enter "powershell" in the search bar, then select the powersehll program
# Writes the text in front of the CMDLET
Write-Output "Below are details about your PC/Server"

# Pause the script for 3 Seconds
Start-Sleep -s 3

# This is to get the details of your Server
Get-ComputerInfo

# Writes the text in front of the CMDLET
Write-Output "Complete"

4 - Get ExecutionPolicy

Get ExecutionPolicy

This gets the execution policies for each scope in the order of precedence of the Target Machine

Login as user on node

  1. Connect via RDP
    mstsc /admin /v:Attune Node
  2. Login as user {Attune Node Credentials}
  3. Then open a command prompt
This is a PowerShell Script make sure you run it with powershell.exe Click start menu, enter "powershell" in the search bar, then select the powersehll program
# Writes the text in front of the CMDLET
Write-Host "Below is the list of ExecutionPolicy on your PC/Server"

# Pause the script for 3 Seconds
Start-Sleep -s 3

# Get the ExecutionPolicy on the Server
Get-ExecutionPolicy -List

# Writes the text in front of the CMDLET
Write-Host "Complete"