Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Command -Module ActiveDirectory
Remove-Item C:\\Temp\\old_log.log -Force
Get-ScheduledTask
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ProcessMitigation -Name powershell.exe
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADServiceAccount -Filter * -Properties *
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Application -Newest 50
Get-Process -Name powershell
Get-Command -Module ActiveDirectory
ipconfig /all
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
cls
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Process -Name powershell
Get-ADGroup -Filter *
Get-Service | Where-Object {.Name -like '*crypt*'}
New-Item -Path C:\\Temp -ItemType Directory
Get-ProcessMitigation -Name powershell.exe
Get-SmbOpenFile
Get-SmbShare
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-HotFix -Id KB5005565
Get-ADComputer -Filter *
ipconfig /all
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Set-Location C:\\Temp
Test-NetConnection google.com
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Start-Sleep -Seconds 10
Get-ADGroup -Filter *
Get-ADGroupMember 'Domain Admins'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Restart-Service -Name 'WinRM'
Get-ADPrincipalGroupMembership svc_backup
Get-ADUser svc_backup -Properties lastLogonTimestamp
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-NetIPAddress
Get-Process -Name powershell
Disconnect-PSDrive Z
Remove-Item C:\\Temp\\old_log.log -Force
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
ipconfig /all
Get-ADPrincipalGroupMembership svc_backup
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Test-Connection -ComputerName dc01.novatech.local
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
systeminfo
Test-Connection -ComputerName dc01.novatech.local
Get-ADPrincipalGroupMembership svc_backup
Remove-Item C:\\Temp\\old_log.log -Force
Set-ExecutionPolicy RemoteSigned -Scope Process
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Credential
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-NetIPAddress
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Application -Newest 50
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADUser -Filter 'Enabled -eq True'
Get-ADOrganizationalUnit -Filter *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ProcessMitigation -Name powershell.exe
Get-ProcessMitigation -Name powershell.exe
Start-Sleep -Seconds 10
Start-Sleep -Seconds 10
Restart-Service -Name 'WinRM'
Get-Process -Name powershell
cls
Get-ADUser svc_backup -Properties lastLogonTimestamp
ipconfig /all
Get-Process | Where-Object {.CPU -gt 100}
hostname
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Application -Newest 50
Disconnect-PSDrive Z
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADGroup -Filter *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Date
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADPrincipalGroupMembership svc_backup
Get-ADPrincipalGroupMembership svc_backup
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-LocalGroupMember -Group 'Administrators'
Get-ADServiceAccount -Filter * -Properties *
Get-Command -Module ActiveDirectory
Get-ChildItem -Recurse C:\\Scripts\\
cls
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
