Перейти к содержимому

Smbshare в сети что это

  • автор:

Get-Smb Share

The Get-SmbShare cmdlet retrieves objects that represent the Server Message Block (SMB) shares being displayed by the computer.

Examples

Example 1: Get SMB shares on a local computer

PS C:\>Get-SMBShare Name ScopeName Path Description ---- --------- ---- ----------- ADMIN$ * C:\Windows Remote Admin C$ * C:\ Default share D$ * D:\ Default share F$ * F:\ Default share IPC$ * Remote IPC VMS1 * I:\VMS

This command retrieves the SMB shares on the computer.

Example 2: Get a specific SMB share on the local computer

PS C:\>Get-SmbShare -Name "VMS1" Name ScopeName Path Description ---- --------- ---- ----------- VMS1 * I:\VMS

This command retrieves information about the SMB share named ‘VMS1’ on the local computer.

Example 3: Display information about the SMB shares on a remote computer

PS C:\>get-smbshare -CimSession "NEDFS1" Name ScopeName Path Description PSComputerName ---- --------- ---- ----------- -------------- ADMIN$ * C:\Windows Remote Admin ae-dfsr-sr-01 C$ * C:\ Default share ae-dfsr-sr-01 D$ * D:\ Default share ae-dfsr-sr-01 E$ * E:\ Default share ae-dfsr-sr-01 IPC$ * Remote IPC ae-dfsr-sr-01 IT dept * D:\data\IT dept ae-dfsr-sr-01 procedures * D:\hr\procedures ae-dfsr-sr-01 VHD and ISO * D:\data\VHD and ISO ae-dfsr-sr-01

This command displays the information about the SMB shares on the remote computer NEDFS1.

Example 4: Display all properties about a specific SMB share on the local computer in a list

PS C:\>Get-SmbShare -Name "VMS1" | Format-List -Property * PresetPathAcl : System.Security.AccessControl.DirectorySecurity ShareState : Online AvailabilityType : Clustered ShareType : FileSystemDirectory FolderEnumerationMode : Unrestricted CachingMode : Manual CATimeout : 0 ConcurrentUserLimit : 0 ContinuouslyAvailable : True CurrentUsers : 3 Description : EncryptData : False Name : VMS1 Path : I:\VMS Scoped : True ScopeName : * SecurityDescriptor : O:BAG:DUD:(A;;FA;;;S-1-5-21-219828122-4198910963-4161819395-500)(A;;FA;;;S-1-5-21-219828122-419 8910963-4161819395-1106)(A;;FA;;;S-1-5-21-219828122-4198910963-4161819395-1109) ShadowCopy : False Special : False Temporary : False Volume : \\?\Volume\ PSComputerName : CimClass : ROOT/Microsoft/Windows/SMB:MSFT_SmbShare CimInstanceProperties : CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties

This command displays all of the information about the SMB share named ‘VMS1’ on the local computer as a formatted list.

Example 5: Get shares on the local failover cluster computer that have scale out availability

PS C:\>Get-SmbShare | Where-Object -Property AvailabilityType -Eq ScaleOut Name ScopeName Path Description ---- --------- ---- ----------- ClusterStorage$ Contoso-SO C:\ClusterStorage Cluster Shared Volumes Def. VMS3 Contoso-SO C:\ClusterStorage\Volume1\VMS VMS4 Contoso-SO C:\ClusterStorage\Volume2\VMS

This command retrieves the SMB shares on the computer that have scaled out availability.

Example 6: Get shares that are connected to a local failover cluster file server resource named «Contoso-FS»

PS C:\>Get-SmbShare -ScopeName "Contoso-FS" Name ScopeName Path Description ---- --------- ---- ----------- I$ Contoso-FS I:\ Cluster Default Share J$ Contoso-FS J:\ Cluster Default Share VMS1 Contoso-FS I:\VMS VMS2 Contoso-FS J:\VMS

This command retrieves the SMB shares on the Windows Server failover cluster that are connected to the clustered file server resource named Contoso-FS.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

Type: SwitchParameter
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-AvailabilityType

Specifies the cluster type of the shares being enumerated.

Type: AvailabilityType [ ]
Accepted values: NonClustered, Clustered, ScaleOut, CSV, DFS
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-CachingMode

Specifies the caching mode of the shares being enumerated.

Type: CachingMode [ ]
Accepted values: None, Manual, Documents, Programs, BranchCache, Unknown
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-CaTimeout

Specifies the continuous availability time-out of the shares being enumerated.

Type: UInt32 [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Type: CimSession [ ]
Aliases: Session
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-CompressData

Indicates that the shares being enumerated should request compression from clients.

Type: Boolean [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-ConcurrentUserLimit

Specifies the concurrent user limit of the shares being enumerated.

Type: UInt32 [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-ContinuouslyAvailable

Indicates that the shares being enumerated should be continuously available.

Type: Boolean [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-EncryptData

Indicates that the shares being enumerated should be encrypted.

Type: Boolean [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-FolderEnumerationMode

Specifies the folder enumeration mode of the shares being enumerated.

Type: FolderEnumerationMode [ ]
Accepted values: AccessBased, Unrestricted
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-IncludeHidden

Indicates that shares that are created and used internally are also enumerated.

Type: SwitchParameter
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

-LeasingMode

Specifies SMB leasing and oplock behaviors.

Type: LeasingMode [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-Name

Specifies one or more SMB shares by share name.

Type: String [ ]
Position: 1
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-Scoped

Indicates that the shares to be numerated should be scoped.

Type: Boolean [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-ScopeName

Specifies the scope of the share by name. For use with Windows Server failover cluster file server resources.

Type: String [ ]
Position: 2
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-ShareState

Specifies the state of the shares being enumerated.

Type: ShareState [ ]
Accepted values: Pending, Online, Offline
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-SmbInstance

Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.

Type: SmbInstance
Accepted values: Default, CSV, SBL, SR
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-Special

Indicates that the shares to be numerated should be special. Admin share, default shares, IPC$ share are examples of special shares.

Type: Boolean [ ]
Position: Named
Default value: None
Required: False
Accept pipeline input: True
Accept wildcard characters: False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

Type: Int32
Position: Named
Default value: None
Required: False
Accept pipeline input: False
Accept wildcard characters: False

Inputs

Outputs

The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign ( # ) provides the namespace and class name for the underlying WMI object. The MSFT_SmbShare object represents the SMB shares on the computer.

Related Links

  • New-SmbShare
  • Remove-SmbShare
  • Set-SmbShare

Smb Share

This reference provides cmdlet descriptions and syntax for all Server Message Block (SMB) Share-specific cmdlets. It lists the cmdlets in alphabetical order based on the verb at the beginning of the cmdlet.

SmbShare

Adds a deny ACE for a trustee to the security descriptor of the SMB share.

Closes a file that is open by one of the clients of the SMB server.

Ends forcibly the SMB session.

Disables a constrained delegation authorization for an SMB client and server.

Enables a constrained delegation authorization for an SMB client and server.

Gets the list of SMB bandwidth caps for each traffic category.

Retrieves the SMB client configuration.

Retrieves the network interfaces used by the SMB client.

Retrieves the connections established from the SMB client to the SMB servers.

Gets the constrained delegation authorizations for an SMB client.

Retrieves the properties of a Server Message Block (SMB) global mapping.

Retrieves the SMB client directory mappings created for a server.

Retrieves the SMB connections made between the SMB client network interfaces and the SMB server network interfaces.

Retrieves the constraints that define how the SMB client uses network interfaces to connect to the servers.

Retrieves basic information about the files that are open on behalf of the clients of the SMB server.

Retrieves a certificate associated with the SMB server for SMB over QUIC.

Retrieves an SMB over QUIC-mapped certificate’s properties and tests certificate validity.

Retrieves the SMB server configuration.

Retrieves the network interfaces used by the SMB server.

Retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients.

Retrieves the SMB shares on the computer.

Retrieves the ACL of the SMB share.

Adds an allow access control entry (ACE) for a trustee to the security descriptor of the Server Message Block (SMB) share.

Creates an SMB global mapping.

Creates an SMB mapping.

Creates an SMB multi-channel constraint for the specified server.

Creates a certificate association with the SMB server for SMB over QUIC.

Creates an SMB share.

Removes SMB bandwidth caps.

Removes SMB1 components.

Removes a Server Message Block (SMB) global mapping to an SMB share.

Removes the SMB mapping to an SMB share.

Removes SMB multi-channel constraints.

Removes a certificate mapping from the SMB server for SMB over QUIC.

Deletes the specified SMB shares.

Resets the Server Message Block (SMB) client configuration parameters to their default values.

Resets the Server Message Block (SMB) server configuration parameters to their default values.

Removes all of the allow ACEs for a trustee from the security descriptor of the SMB share.

Adds an SMB bandwidth cap.

Sets the SMB client configuration.

Sets the ACL for the file system folder to match the ACL used by an SMB share.

Modifies a certificate association with the SMB server for SMB over QUIC.

Sets the Server Message Block (SMB) server configuration.

Modifies the properties of the SMB share.

Removes all of the deny ACEs for the trustee from the security descriptor of the SMB share.

Forces the SMB client to update the multi-channel-related information.

Непонятный гость в разделе «Сеть»

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Похожий контент

Mrak

Я поставил с госуслуг 2 сертификата, чтобы проходила оплата, обслуживаемая сбербанком.
Сегодня заметил в шторке телефона такое сообщение:
Подскажите, мне уже волноваться или тревога из-за этих 2х сертификатов?

Подскажите по настройке сетевых правил.
Определённому приложению требуется запретить все порты, кроме некоторых. Как правильно это сделать?
Я понимаю как запретить конкретные порты и как запретить все порты, но пока не могу понять как сделать исключения для конкретных портов.
Мне нужно сделать одно правило, в котором я пропишу запрет для всех портов для этой программы. И остальные правила, в которых будет прописано разрешение определённых портов. Так?

Windows 10
KIS 21.3.10.391

От Александр Широкий

Есть вопрос, возможно, кто-то сможет подсказать, куда копать. Ситуация: закрытый, находящийся в спящем режиме, чехле и рюкзаке макбук самовольно цепляется к беспроводной сети и что-то куда-то отправляет (см. картинку). В настойках энергосбережения Power Nap (эппловский аналог Connected Standby) запрещён при питании от аккумулятора, никаких процессов или служб, мешающих компу спать, не запущено. В логах ничего путного найти не удалось (прикладываю), поиск в Сети даёт невнятный результат (дескать, это нормальное поведение для макбука). Но меня беспокоят две вещи:
1) за ночь он таким макаром выедает до четверти ёмкости батареи;
2) мне не нравится, что мой компьютер ходит в Интернет без меня.

Кроме того, старенький MacBook Pro 2012 года так себя не ведёт — он если засыпает, то с концами и в Сеть не лезет. MacBook Air 2013 года у товарища — тоже. А вот Pro 2018 года ведёт себя так, как описано выше. Временное решение — вырубать wi-fi на ночь. Тогда он, суда по логам, несколько раз просыпается, пытается залезть в Сеть, обламывается и от огорчения засыпает обратно. Расход батареи получается 1–2 процента за 12 часов. Но может быть, его всё же можно как-нибудь программно отучить по интернетам шастать без хозяина?

system.log Mac Analytics Data.log wifi.log

Здравствуйте, после удаления Internet Security штатным ремувером от Касперского слетели драйверы сетевого адаптера и не восстанавливаются! Код ошибки в диспетчере устройств = 28! Драйверы usb тоже слетели, но восстановлены помогла ссылка (https://soft.mydiv.net/win/qans.t35418.udalenie-kasperskogo-i-posleduyushii-feil.0-Kaspersky-Antivirus-Yandex-version.html). Не устанавливается другой антивирус! Прошу помочь разобраться, спасибо!
Сообщение от модератора kmscom Тема перемещена из Технического раздела

От Ivan Serov

Здравствуйте. Я работаю в организации и у меня на компьютере установлен обменник — папка, заходя в которую у каждого компьютера в сети есть к ней доступ и множество других папок, созданных пользователями в общей сети. Мне необходимо найти файл по его содержимому. В параметрах индексирования у меня уже стоит индексировать свойства и содержимое файлов. На своём компе я свободно могу находить любой файл по его содержимому, а вот в обменнике нет. Приходится перетягивать с обменника целую папку себе на рабочий стол и уже искать содержимое нужного мне файла. Через проводник в обменнике находится лишь название файла, но не его содержимое. Что делать? Стоит Windows 10

Чужой в сети

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

  • Ответов 44
  • Created 8 г
  • Последний ответ 8 г
Top Posters In This Topic
  • gennadij-zaripov 17 posts
  • sputnikksputnikk 7 posts
  • status12status12 5 posts
  • oitoit 5 posts
Popular Days
  • 2 нояб 2015 26 posts
  • 3 нояб 2015 16 posts
  • 7 нояб 2015 3 posts
Popular Posts
ska79
Ummitium

Чтоб более понятнее было, читаем внимательно статью: http://habrahabr.ru/post/188454

Sandynist

На первом скрине в этой теме явным образом мне мерещится устройство TP-Link

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *