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