Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName System -Newest 50
Set-Location C:\\Temp
Set-Location C:\\Temp
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
cls
Get-NetIPAddress
hostname
systeminfo
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Application -Newest 50
Remove-Item C:\\Temp\\old_log.log -Force
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Write-Host 'Operation terminée'
systeminfo
Get-Credential
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-NTFSAccess -Path C:\\SYSVOL
Write-Host 'Operation terminée'
Test-NetConnection google.com
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ChildItem -Recurse C:\\Scripts\\
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Credential
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Process -Name powershell
hostname
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Date
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName System -Newest 50
Get-Process -Name powershell
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADGroup -Filter *
Disconnect-PSDrive Z
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName System -Newest 50
Get-NetIPAddress
Get-SmbShare
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Restart-Service -Name 'WinRM'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Disconnect-PSDrive Z
Get-EventLog -LogName System -Newest 50
Get-SmbShare
Get-ADComputer -Filter *
Get-LocalGroupMember -Group 'Administrators'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WmiObject Win32_OperatingSystem
Get-NetFirewallProfile
Get-SmbShare
cls
Get-Process -Name powershell
Get-ChildItem -Recurse C:\\Scripts\\
Get-Process -Name powershell
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Command -Module ActiveDirectory
Get-ADGroup -Filter *
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Remove-Item C:\\Temp\\old_log.log -Force
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName System -Newest 50
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
cls
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADGroup -Filter *
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-WmiObject Win32_OperatingSystem
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-EventLog -LogName System -Newest 50
Test-NetConnection google.com
hostname
Get-ADServiceAccount -Filter * -Properties *
Import-Module ActiveDirectory
Get-EventLog -LogName Application -Newest 50
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-SmbSession
Get-Service -Name WinRM | Format-List *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Service | Where-Object {.Name -like '*crypt*'}
whoami
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
systeminfo
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
systeminfo
Get-ProcessMitigation -Name powershell.exe
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Restart-Service -Name 'WinRM'
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NetIPAddress
Import-Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Application -Newest 50
cls
Restart-Service -Name 'WinRM'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
hostname
Get-ADGroupMember 'Domain Admins'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
cls
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
systeminfo
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
