Set-Location C:\\Temp
Get-ScheduledTask
Get-Service -Name WinRM | Format-List *
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service | Where-Object {.Name -like '*crypt*'}
Start-Sleep -Seconds 10
Get-SmbSession
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Set-Location C:\\Temp
Get-WmiObject Win32_OperatingSystem
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Import-Module ActiveDirectory
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
cls
Get-EventLog -LogName Application -Newest 50
Get-ADOrganizationalUnit -Filter *
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
systeminfo
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ScheduledTask
Get-HotFix -Id KB5005565
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADOrganizationalUnit -Filter *
Get-NetIPAddress
Get-ADServiceAccount -Filter * -Properties *
Restart-Service -Name 'WinRM'
Get-ADGroup -Filter *
Start-Sleep -Seconds 10
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADComputer -Filter *
ipconfig /all
Get-ADUser -Filter 'Enabled -eq True'
Remove-Item C:\\Temp\\old_log.log -Force
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
ipconfig /all
Get-Process -Name powershell
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WmiObject Win32_OperatingSystem
Get-SmbSession
Get-Credential
Get-ADComputer -Filter *
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADPrincipalGroupMembership svc_backup
Get-Credential
Get-Process -Name powershell
ipconfig /all
Get-SmbSession
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-SmbShare
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADGroup -Filter *
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
New-Item -Path C:\\Temp -ItemType Directory
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Write-Host 'Operation terminée'
Get-NetIPAddress
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Disconnect-PSDrive Z
Get-ProcessMitigation -Name powershell.exe
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-NetIPAddress
hostname
Get-HotFix -Id KB5005565
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Content C:\\Scripts\\deploy.ps1
Get-ADUser svc_backup -Properties lastLogonTimestamp
Import-Module ActiveDirectory
Disconnect-PSDrive Z
Get-NetFirewallProfile
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ChildItem -Recurse C:\\Scripts\\
Test-Connection -ComputerName dc01.novatech.local
Get-Service | Where-Object {.Status -eq 'Running'}
Write-Host 'Operation terminée'
Get-ProcessMitigation -Name powershell.exe
Start-Sleep -Seconds 10
Get-Command -Module ActiveDirectory
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADPrincipalGroupMembership svc_backup
Get-ADPrincipalGroupMembership svc_backup
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Disconnect-PSDrive Z
systeminfo
Test-NetConnection google.com
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Command -Module ActiveDirectory
Get-Date
hostname
whoami
Get-Content C:\\Scripts\\deploy.ps1
Get-Content C:\\Scripts\\deploy.ps1
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-CimInstance -ClassName Win32_QuickFixEngineering
hostname
Get-Service -Name WinRM | Format-List *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ProcessMitigation -Name powershell.exe
Get-CimInstance -ClassName Win32_QuickFixEngineering
hostname
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
